@@ -68,7 +68,8 @@ module.exports = {
6868 } ] ,
6969
7070 // disallow mixed 'LF' and 'CRLF' as linebreaks
71- 'linebreak-style' : 0 ,
71+ // http://eslint.org/docs/rules/linebreak-style
72+ 'linebreak-style' : [ 2 , 'unix' ] ,
7273
7374 // enforces empty lines around comments
7475 'lines-around-comment' : 0 ,
@@ -108,7 +109,8 @@ module.exports = {
108109 'new-cap' : [ 2 , { newIsCap : true } ] ,
109110
110111 // disallow the omission of parentheses when invoking a constructor with no arguments
111- 'new-parens' : 0 ,
112+ // http://eslint.org/docs/rules/new-parens
113+ 'new-parens' : 2 ,
112114
113115 // allow/disallow an empty newline after var statement
114116 'newline-after-var' : 0 ,
@@ -125,16 +127,20 @@ module.exports = {
125127 'no-array-constructor' : 2 ,
126128
127129 // disallow use of bitwise operators
130+ // http://eslint.org/docs/rules/no-bitwise
131+ // TODO: enable
128132 'no-bitwise' : 0 ,
129133
130134 // disallow use of the continue statement
131- 'no-continue' : 0 ,
135+ // http://eslint.org/docs/rules/no-continue
136+ 'no-continue' : 2 ,
132137
133138 // disallow comments inline after code
134139 'no-inline-comments' : 0 ,
135140
136141 // disallow if as the only statement in an else block
137- 'no-lonely-if' : 0 ,
142+ // http://eslint.org/docs/rules/no-lonely-if
143+ 'no-lonely-if' : 2 ,
138144
139145 // disallow un-paren'd mixes of different operators
140146 // http://eslint.org/docs/rules/no-mixed-operators
@@ -224,7 +230,8 @@ module.exports = {
224230 'one-var-declaration-per-line' : [ 2 , 'always' ] ,
225231
226232 // require assignment operator shorthand where possible or prohibit it entirely
227- 'operator-assignment' : 0 ,
233+ // http://eslint.org/docs/rules/operator-assignment
234+ 'operator-assignment' : [ 2 , 'always' ] ,
228235
229236 // enforce operators to be placed before or after line breaks
230237 'operator-linebreak' : 0 ,
@@ -266,7 +273,13 @@ module.exports = {
266273 'space-infix-ops' : 2 ,
267274
268275 // Require or disallow spaces before/after unary operators
269- 'space-unary-ops' : 0 ,
276+ // http://eslint.org/docs/rules/space-unary-ops
277+ 'space-unary-ops' : [ 2 , {
278+ words : true ,
279+ nonwords : false ,
280+ overrides : {
281+ } ,
282+ } ] ,
270283
271284 // require or disallow a space immediately following the // or /* in a comment
272285 'spaced-comment' : [ 2 , 'always' , {
0 commit comments