Skip to content

Commit 697aa00

Browse files
committed
jshintrc cleanup
- eqnull is a relaxing option, not an enforcing option - trailing has been removed as of jshint 2.5 - put in alphabetical order
1 parent 06be2ba commit 697aa00

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

linters/jshintrc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,35 @@
2525
// Prohibit use of == and != in favor of === and !==.
2626
"eqeqeq": true,
2727

28-
// Suppress warnings about == null comparisons.
29-
"eqnull": true,
30-
3128
// Enforce tab width of 2 spaces.
3229
"indent": 2,
3330

3431
// Prohibit use of a variable before it is defined.
3532
"latedef": true,
3633

34+
// Enforce line length to 80 characters
35+
"maxlen": 80,
36+
3737
// Require capitalized names for constructor functions.
3838
"newcap": true,
3939

4040
// Enforce use of single quotation marks for strings.
4141
"quotmark": "single",
4242

43-
// Prohibit trailing whitespace.
44-
"trailing": true,
43+
// Enforce placing 'use strict' at the top function scope
44+
"strict": true,
4545

4646
// Prohibit use of explicitly undeclared variables.
4747
"undef": true,
4848

4949
// Warn when variables are defined but never used.
5050
"unused": true,
5151

52-
// Enforce line length to 80 characters
53-
"maxlen": 80,
52+
/*
53+
* RELAXING OPTIONS
54+
* =================
55+
*/
5456

55-
// Enforce placing 'use strict' at the top function scope
56-
"strict": true
57+
// Suppress warnings about == null comparisons.
58+
"eqnull": true
5759
}

0 commit comments

Comments
 (0)