Skip to content

Commit f016415

Browse files
committed
fix(jshint): add non-standard comments for JSHint, use them around class properties
AFAIK we won't need this if we move to ESLint
1 parent 326c69b commit f016415

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

app/templates/client/.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"strict": true,
1717
"trailing": true,
1818
"smarttabs": true,
19+
"ignoreDelimiters": [
20+
{ "start": "start-non-standard", "end": "end-non-standard" }
21+
],
1922
"globals": {
2023
"jQuery": true,
2124
"angular": true,

app/templates/client/app/account(auth)/login/login.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
'use strict';
22

33
class LoginController {
4+
//start-non-standard
45
user = {};
56
errors = {};
67
submitted = false;
8+
//end-non-standard
79

810
constructor(Auth<% if (filters.ngroute) { %>, $location<% } %><% if (filters.uirouter) { %>, $state<% } %>) {
911
this.Auth = Auth;<% if (filters.ngroute) { %>

app/templates/client/app/account(auth)/settings/settings.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'use strict';
22

33
class SettingsController {
4+
//start-non-standard
45
errors = {};
56
submitted = false;
7+
//end-non-standard
68

79
constructor(Auth) {
810
this.Auth = Auth;

app/templates/client/app/account(auth)/signup/signup.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
'use strict';
22

33
class SignupController {
4+
//start-non-standard
45
user = {};
56
errors = {};
67
submitted = false;
8+
//end-non-standard
79

810
constructor(Auth<% if (filters.ngroute) { %>, $location<% } %><% if (filters.uirouter) { %>, $state<% } %>) {
911
this.Auth = Auth;<% if (filters.ngroute) { %>

0 commit comments

Comments
 (0)