-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (64 loc) · 1.63 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
{
"env": {
"browser": true,
"node": true, // storybook
"jest": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"rules": {
"no-unused-vars": 2,
"keyword-spacing": 2,
"semi": [2, "always"],
"indent": [2, 2],
"no-param-reassign": 2,
"dot-notation": 2,
"eqeqeq": 2,
"no-implied-eval": 2,
"no-invalid-this": 2,
"no-var": 2,
"no-use-before-define": 2,
"no-const-assign": 2,
"key-spacing": 2,
"padded-blocks": [2, "never"],
"quote-props": [2, "as-needed"],
"no-multi-spaces": 2,
"no-multiple-empty-lines": [2, { max: 2, maxEOF: 1 }],
"space-before-blocks": 2,
"space-before-function-paren" : [2, "never"],
"space-infix-ops": 2,
"spaced-comment": 2,
"space-in-parens": 2,
"no-trailing-spaces": 2,
"arrow-spacing": 2,
"no-useless-constructor": 2,
"prefer-const": 2,
"max-len": [2, 100],
"max-depth": 2,
"react/jsx-indent": [2, 2],
"react/no-string-refs": 2,
"react/jsx-key": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-pascal-case": 2,
"react/jsx-no-undef": 2,
"react/sort-comp": 2,
"react/require-render-return": 2,
"react/prefer-stateless-function": 2,
"react/prefer-es6-class": 2,
"react/no-direct-mutation-state": 2
}
}