@@ -34,10 +34,17 @@ module.exports = {
3434 // enforces use of function declarations or expressions
3535 'func-style' : 0 ,
3636
37+ // Blacklist certain identifiers to prevent them being used
38+ // http://eslint.org/docs/rules/id-blacklist
39+ 'id-blacklist' : 0 ,
40+
3741 // this option enforces minimum and maximum identifier lengths
3842 // (variable names, property names etc.)
3943 'id-length' : 0 ,
4044
45+ // require identifiers to match the provided regular expression
46+ 'id-match' : 0 ,
47+
4148 // this option sets a specific tab width for your code
4249 // http://eslint.org/docs/rules/indent
4350 'indent' : [ 2 , 2 , { 'SwitchCase' : 1 , 'VariableDeclarator' : 1 } ] ,
@@ -60,11 +67,14 @@ module.exports = {
6067 }
6168 } ] ,
6269
70+ // disallow mixed 'LF' and 'CRLF' as linebreaks
71+ 'linebreak-style' : 0 ,
72+
6373 // enforces empty lines around comments
6474 'lines-around-comment' : 0 ,
6575
66- // disallow mixed 'LF' and 'CRLF' as linebreaks
67- 'linebreak-style ' : 0 ,
76+ // specify the maximum depth that blocks can be nested
77+ 'max-depth ' : [ 0 , 4 ] ,
6878
6979 // specify the maximum length of a line in your program
7080 // http://eslint.org/docs/rules/max-len
@@ -76,6 +86,12 @@ module.exports = {
7686 // specify the maximum depth callbacks can be nested
7787 'max-nested-callbacks' : 0 ,
7888
89+ // limits the number of parameters that can be used in the function declaration.
90+ 'max-params' : [ 0 , 3 ] ,
91+
92+ // specify the maximum number of statement allowed in a function
93+ 'max-statements' : [ 0 , 10 ] ,
94+
7995 // restrict the number of statements per line
8096 // http://eslint.org/docs/rules/max-statements-per-line
8197 'max-statements-per-line' : [ 0 , { 'max' : 1 } ] ,
@@ -100,6 +116,9 @@ module.exports = {
100116 // disallow use of the Array constructor
101117 'no-array-constructor' : 2 ,
102118
119+ // disallow use of bitwise operators
120+ 'no-bitwise' : 0 ,
121+
103122 // disallow use of the continue statement
104123 'no-continue' : 0 ,
105124
@@ -125,6 +144,19 @@ module.exports = {
125144 // disallow use of the Object constructor
126145 'no-new-object' : 2 ,
127146
147+ // disallow use of unary operators, ++ and --
148+ 'no-plusplus' : 0 ,
149+
150+ // disallow certain syntax forms
151+ // http://eslint.org/docs/rules/no-restricted-syntax
152+ 'no-restricted-syntax' : [
153+ 2 ,
154+ 'DebuggerStatement' ,
155+ 'ForInStatement' ,
156+ 'LabeledStatement' ,
157+ 'WithStatement' ,
158+ ] ,
159+
128160 // disallow space between function identifier and application
129161 'no-spaced-func' : 2 ,
130162
@@ -179,19 +211,16 @@ module.exports = {
179211 // specify whether double or single quotes should be used
180212 'quotes' : [ 2 , 'single' , 'avoid-escape' ] ,
181213
182- // require identifiers to match the provided regular expression
183- 'id-match' : 0 ,
184-
185214 // do not require jsdoc
186215 // http://eslint.org/docs/rules/require-jsdoc
187216 'require-jsdoc' : 0 ,
188217
189- // enforce spacing before and after semicolons
190- 'semi-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
191-
192218 // require or disallow use of semicolons instead of ASI
193219 'semi' : [ 2 , 'always' ] ,
194220
221+ // enforce spacing before and after semicolons
222+ 'semi-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
223+
195224 // sort variables within the same declaration block
196225 'sort-vars' : 0 ,
197226
0 commit comments