@@ -10,22 +10,27 @@ module.exports = {
10
10
document : false
11
11
} ,
12
12
parser : "babel-eslint" ,
13
+ parserOptions : {
14
+ ecmaFeatures : { "legacyDecorators" : true }
15
+ } ,
13
16
rules : {
17
+ "class-methods-use-this" : 0 ,
18
+ "comma-dangle" : [ "error" , "never" ] ,
19
+ // TODO: Change the following to error in the near future
14
20
"consistent-return" : 1 ,
15
- // TODO: Decide on MemberExpression
21
+ "func-names" : [ "error" , "never" ] ,
22
+ // TODO: Decide on MemberExpression for the following
16
23
"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 } ] ,
20
25
"no-console" : 2 ,
26
+ "no-multiple-empty-lines" : [ 'error' , { max : 1 , maxEOF : 1 } ] ,
21
27
"no-param-reassign" : [ "error" , { "props" : false } ] ,
28
+ "no-underscore-dangle" : 0 ,
22
29
"no-unused-vars" : [ "error" , { "args" : "none" } ] ,
23
30
"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 } ] ,
27
31
"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 ,
29
34
"react/forbid-prop-types" : 1 ,
30
35
"react/jsx-filename-extension" : [ 1 , { "extensions" : [ ".js" ] } ] ,
31
36
"react/jsx-indent" : [ 1 , 3 ] ,
@@ -43,6 +48,7 @@ module.exports = {
43
48
"react/no-did-update-set-state" : 0 ,
44
49
// NOTE: This is a bug
45
50
// 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" ]
47
53
}
48
54
}
0 commit comments