-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
100 lines (100 loc) · 2.72 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"parser": "babel-eslint",
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"block-scoped-var": 0,
"block-spacing": [2, "always"],
"comma-dangle": 0,
"comma-spacing": [2, {"before": false, "after": true}],
"dot-location": [2, "property"],
"eol-last": 0,
"eqeqeq": [2, "allow-null"],
"func-names": 0,
"id-length": [2, {"min": 2, "max": 30, "properties": "never", "exceptions": ["_", "R"]}],
"indent": [2, 2, {"SwitchCase": 1}],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"max-len": [2, 80, 4],
"new-cap": 0,
"no-alert": 0,
"no-console": 0,
"no-dupe-keys": 2,
"no-else-return": 0,
"no-eval": 2,
"no-inline-comments": 0,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-undef": 2,
"no-unused-expressions": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [2, "nofunc"],
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
"no-with": 2,
"padded-blocks": 0,
"quotes": [2, "single"],
"radix": 2,
"semi": [2, "never"],
"vars-on-top": 2,
"wrap-iife": 2,
"yoda": 2,
"import/default": 0,
"import/no-duplicates": 2,
"import/named": 0,
"import/namespace": 0,
"import/no-duplicates": 2,
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
"import/no-named-as-default": 0,
"react/jsx-boolean-value": 2,
"react/jsx-closing-bracket-location": 2,
"react/jsx-curly-spacing": 0,
"react/jsx-indent-props": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": 0,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/require-extension": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 0,
"react/wrap-multilines": 2
},
"plugins": [
"react", "import"
],
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
"moduleDirectory": ["node_modules", "src"]
}
},
"globals": {
"__DEV__": false,
"__PROD__": false,
"__DEBUG__": false,
"__DEBUG_NEW_WINDOW__": false,
"__BASENAME__": false,
"GIT": false
}
}