@@ -83,6 +83,14 @@ module.exports = {
8383 ignoreComments : false
8484 } ] ,
8585
86+ // specify the max number of lines in a file
87+ // http://eslint.org/docs/rules/max-lines
88+ 'max-lines' : [ 0 , {
89+ max : 300 ,
90+ skipBlankLines : true ,
91+ skipComments : true
92+ } ] ,
93+
8694 // specify the maximum depth callbacks can be nested
8795 'max-nested-callbacks' : 0 ,
8896
@@ -128,6 +136,20 @@ module.exports = {
128136 // disallow if as the only statement in an else block
129137 'no-lonely-if' : 0 ,
130138
139+ // disallow un-paren'd mixes of different operators
140+ // http://eslint.org/docs/rules/no-mixed-operators
141+ // TODO: enable
142+ 'no-mixed-operators' : [ 0 , {
143+ groups : [
144+ [ '+' , '-' , '*' , '/' , '%' , '**' ] ,
145+ [ '&' , '|' , '^' , '~' , '<<' , '>>' , '>>>' ] ,
146+ [ '==' , '!=' , '===' , '!==' , '>' , '>=' , '<' , '<=' ] ,
147+ [ '&&' , '||' ] ,
148+ [ 'in' , 'instanceof' ]
149+ ] ,
150+ allowSamePrecedence : false
151+ } ] ,
152+
131153 // disallow mixed spaces and tabs for indentation
132154 'no-mixed-spaces-and-tabs' : 2 ,
133155
@@ -181,6 +203,13 @@ module.exports = {
181203 // require padding inside curly braces
182204 'object-curly-spacing' : [ 2 , 'always' ] ,
183205
206+ // enforce line breaks between braces
207+ // http://eslint.org/docs/rules/object-curly-newline
208+ 'object-curly-newline' : [ 0 , {
209+ ObjectExpression : { minProperties : 0 , multiline : true } ,
210+ ObjectPattern : { minProperties : 0 , multiline : true }
211+ } ] ,
212+
184213 // enforce "same line" or "multiple line" on object properties.
185214 // http://eslint.org/docs/rules/object-property-newline
186215 // TODO: enable when https://github.com/eslint/eslint/issues/5667#issuecomment-219334864 is resolved
0 commit comments