@@ -10,22 +10,27 @@ module.exports = {
1010 document : false
1111 } ,
1212 parser : "babel-eslint" ,
13+ parserOptions : {
14+ ecmaFeatures : { "legacyDecorators" : true }
15+ } ,
1316 rules : {
17+ "class-methods-use-this" : 0 ,
18+ "comma-dangle" : [ "error" , "never" ] ,
19+ // TODO: Change the following to error in the near future
1420 "consistent-return" : 1 ,
15- // TODO: Decide on MemberExpression
21+ "func-names" : [ "error" , "never" ] ,
22+ // TODO: Decide on MemberExpression for the following
1623 "indent" : [ "error" , 3 , { "SwitchCase" : 1 , "MemberExpression" : "off" } ] ,
17- "semi" : [ "error" , "never" ] ,
18- "comma-dangle" : [ "error" , "never" ] ,
19- "no-underscore-dangle" : 0 ,
24+ "max-len" : [ "error" , { "code" : 100 , "ignoreStrings" : true , "ignoreTemplateLiterals" : true } ] ,
2025 "no-console" : 2 ,
26+ "no-multiple-empty-lines" : [ 'error' , { max : 1 , maxEOF : 1 } ] ,
2127 "no-param-reassign" : [ "error" , { "props" : false } ] ,
28+ "no-underscore-dangle" : 0 ,
2229 "no-unused-vars" : [ "error" , { "args" : "none" } ] ,
2330 "no-use-before-define" : [ "error" , { "functions" : false } ] ,
24- "func-names" : [ "error" , "never" ] ,
25- "class-methods-use-this" : 0 ,
26- "no-multiple-empty-lines" : [ 'error' , { max : 1 , maxEOF : 1 } ] ,
2731 "no-use-before-define" : [ "error" , { "functions" : false } ] ,
28- "max-len" : [ "error" , { "code" : 100 , "ignoreStrings" : true , "ignoreTemplateLiterals" : true } ] ,
32+ "operator-linebreak" : [ "error" , "after" , { "overrides" : { "?" : "before" , ":" : "before" } } ] ,
33+ "react/destructuring-assignment" : 0 ,
2934 "react/forbid-prop-types" : 1 ,
3035 "react/jsx-filename-extension" : [ 1 , { "extensions" : [ ".js" ] } ] ,
3136 "react/jsx-indent" : [ 1 , 3 ] ,
@@ -43,6 +48,7 @@ module.exports = {
4348 "react/no-did-update-set-state" : 0 ,
4449 // NOTE: This is a bug
4550 // See: https://github.com/yannickcr/eslint-plugin-react/issues/1773
46- "react/prefer-stateless-function" : [ 0 , { "ignorePureComponents" : true } ]
51+ "react/prefer-stateless-function" : [ 0 , { "ignorePureComponents" : true } ] ,
52+ "semi" : [ "error" , "never" ]
4753 }
4854}
0 commit comments