File tree Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Original file line number Diff line number Diff line change
1
+ version : " 2" # required to adjust maintainability checks
2
+ checks :
3
+ argument-count :
4
+ config :
5
+ threshold : 4
6
+ complex-logic :
7
+ config :
8
+ threshold : 4
9
+ file-lines :
10
+ config :
11
+ threshold : 250
12
+ method-complexity :
13
+ config :
14
+ threshold : 5
15
+ method-count :
16
+ config :
17
+ threshold : 20
18
+ method-lines :
19
+ config :
20
+ threshold : 25
21
+ nested-control-flow :
22
+ config :
23
+ threshold : 4
24
+ return-statements :
25
+ config :
26
+ threshold : 4
27
+ similar-code :
28
+ config :
29
+ threshold : # language-specific defaults. an override will affect all languages.
30
+ identical-code :
31
+ config :
32
+ threshold : # language-specific defaults. an override will affect all languages.
33
+ plugins :
34
+ eslint :
35
+ enabled : true
36
+ channel : " eslint-4"
37
+ exclude_patterns :
38
+ - " docs/"
39
+ - " snapshots/"
40
+ - " **/node_modules/"
41
+ - " **/*.test.js"
Original file line number Diff line number Diff line change 1
1
{
2
+ "parserOptions" : {
3
+ "ecmaFeatures" : {
4
+ "jsx" : true
5
+ }
6
+ },
2
7
"parser" : " babel-eslint" ,
3
8
"extends" : " airbnb" ,
4
9
"plugins" : [" react" , " jsx-a11y" , " import" ],
45
50
"no-plusplus" : 0 ,
46
51
"no-shadow" : 0 ,
47
52
"no-unused-expressions" : [2 , { "allowShortCircuit" : true }],
48
- "object-curly-newline" : 0 ,
53
+ "object-curly-newline" : [
54
+ " error" ,
55
+ {
56
+ "ObjectExpression" : { "multiline" : true , "minProperties" : 3 },
57
+ "ObjectPattern" : { "multiline" : true , "minProperties" : 3 },
58
+ "ImportDeclaration" : { "multiline" : true , "minProperties" : 3 },
59
+ "ExportDeclaration" : { "multiline" : true , "minProperties" : 3 }
60
+ }
61
+ ],
49
62
"react/forbid-prop-types" : 0 ,
50
63
"react/require-default-props" : 0 ,
51
64
"react/jsx-filename-extension" : [
You can’t perform that action at this time.
0 commit comments