1212 "Adaptive": true
1313 },
1414 "rules": {
15+ // Enforce === instead of ==; !== instead of !=
1516 "eqeqeq": 2,
17+
18+ // Enforce if statement within 'for in'
1619 "guard-for-in": 2,
20+
21+ // Disallow overwriting native types like 'Array' or 'Date'
1722 "no-extend-native": 2,
23+
24+ // Enforce wrapping immediate invocations in parentheses
1825 "wrap-iife": 2,
19- "no-use-before-define": 2,
26+
27+ // Disallow usage of a variable before declaration; ignores functions
28+ "no-use-before-define": [2, "nofunc"],
29+
30+ // Enforce capitalization of constructor functions
2031 "new-cap": 2,
32+
33+ // Disallow creation of dense arrays using the Array constructor
2134 "no-array-constructor": 2,
35+
36+ // Disallow use of the Object constructor
2237 "no-new-object": 2,
38+
39+ // Disallow use of argument.caller and argument.callee
2340 "no-caller": 2,
41+
42+ // Disallow empty block statements
2443 "no-empty": 2,
44+
45+ // Disallow use of the with statement
2546 "no-with": 2,
47+
48+ // Disallow mixed spaces and tabs for indentation
2649 "no-mixed-spaces-and-tabs": 2,
50+
51+ // Disallow use of multiline strings
2752 "no-multi-str": 2,
53+
54+ // Warn if variables are not named with camelCase
2855 "camelcase": 1,
56+
57+ // Disallow trailing whitespace at the end of lines
2958 "no-trailing-spaces": 2,
59+
60+ // Disallow spacing before commas; enforce spacing after commas
61+ "comma-spacing": [2, { "before": false, "after": true }],
62+
63+ // Enforce spacing after keywords: if, else, for, while, do, switch, try,
64+ // catch, and finally
3065 "space-after-keywords": 2,
66+
67+ // Enforce spacing before opening brace of block statements
68+ "space-before-blocks": [2, "always"],
69+
70+ // Enforce spaceing around infix operators: +, -, :, ?
3171 "space-infix-ops": 2,
72+
73+ // Enforce spacing around word unary operators: new, delete, typeof, void
74+ // Disallow spacing around non-word unary operators: -, +, --, ++, !, !!
75+ "space-unary-ops": [2, { "words": true, "nonwords": false }],
76+
77+ // Disallow declaration of variables that are not used
3278 "no-unused-vars": 2,
79+
80+ // Disallow undeclared variables (unless mentioned in /*global ...*/ comment)
3381 "no-undef": 2,
82+
83+ // Warn if single newline at end of file is missing
3484 "eol-last": 1,
35- "strict": false,
36- "quotes": "single",
85+
86+ // Enforce single quotes for string literals
87+ "quotes": [2, "single"],
88+
89+ // Disallow unnecessary parentheses
3790 "no-extra-parens": 2,
91+
92+ // Disallow unnecessary semicolons
3893 "no-extra-semi": 2,
94+
95+ // Disallow function or variable declarations in nested blocks
3996 "no-inner-declarations": 2,
97+
98+ // Disallows the nesting of blocks more than 5 deep
4099 "max-depth": [2, "5"],
100+
101+ // Enforces a maximum of 10 parameters in a function declaration
41102 "max-params": [2, "10"],
103+
104+ // Enforces a maximum of 25 statements within a single function
42105 "max-statements": [2, "25"],
43- "max-len": [2, "1000"],
44- "complexity": false,
106+
107+ // Enforces a maximum of 100 characters in a single line; adjusts tabs
108+ // to equal 4 characters
109+ "max-len": [2, "100", "4"],
110+
111+ // Enforces semicolons at the end of statements
45112 "semi": 2,
46- "no-unused-expressions": 2,
113+
114+ // Disallow function definitions of the form 'var f = function() {'
47115 "func-style": [2, "declaration"]
48116 }
49- }
117+ }
0 commit comments