@@ -14,10 +14,17 @@ module.exports = {
1414 rules : {
1515 // enforces no braces where they can be omitted
1616 // http://eslint.org/docs/rules/arrow-body-style
17- 'arrow-body-style' : [ 'error' , 'as-needed' ] ,
17+ // TODO: enable requireReturnForObjectLiteral?
18+ 'arrow-body-style' : [ 'error' , 'as-needed' , {
19+ requireReturnForObjectLiteral : false ,
20+ } ] ,
1821
1922 // require parens in arrow function arguments
20- 'arrow-parens' : 'off' ,
23+ // http://eslint.org/docs/rules/arrow-parens
24+ // TODO: enable, semver-minor
25+ 'arrow-parens' : [ 'off' , 'as-needed' , {
26+ requireForBlockBody : true ,
27+ } ] ,
2128
2229 // require space before/after arrow function's arrow
2330 // http://eslint.org/docs/rules/arrow-spacing
@@ -101,6 +108,11 @@ module.exports = {
101108 ignoreReadBeforeAssign : true ,
102109 } ] ,
103110
111+ // disallow parseInt() in favor of binary, octal, and hexadecimal literals
112+ // http://eslint.org/docs/rules/prefer-numeric-literals
113+ // TODO: enable, semver-major
114+ 'prefer-numeric-literals' : 'off' ,
115+
104116 // suggest using Reflect methods where applicable
105117 // http://eslint.org/docs/rules/prefer-reflect
106118 // TODO: enable?
0 commit comments