-
Notifications
You must be signed in to change notification settings - Fork 964
/
.eslintrc
86 lines (84 loc) · 2.31 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
{
"plugins": [
"import", "flowtype", "jsx-a11y", "react", "const-immutable"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
},
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"settings": {
"import/ignore": [
"node_modules",
"\\.(json|css|jpg|png|gif|eot|svg|ttf|woff|woff2|mp4|webm)$",
],
"import/extensions": [".js", ".jsx"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".json"]
}
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"jsx-a11y/aria-role": "warn",
"jsx-a11y/img-redundant-alt": "warn",
"jsx-a11y/no-access-key": "warn",
"flowtype/define-flow-type": "warn",
"flowtype/require-valid-file-annotation": "warn",
"flowtype/use-flow-type": "warn",
"react/jsx-pascal-case": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/jsx-no-bind": 1,
"react/jsx-no-undef": 1,
"react/display-name": 0,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"const-immutable/no-mutation": 2,
"no-var": "error",
"prefer-const": "error",
"array-bracket-spacing": [2, "never"],
"block-scoped-var": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-spacing": [2, {"before": false, "after": true}],
"eqeqeq": [2, "smart"],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"indent": [2, "tab", { "SwitchCase": 1 }],
"comma-dangle": 0,
"jsx-quotes": [2, "prefer-double"],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"no-undef": 2,
"no-console": 0,
"no-unused-vars": 2,
"object-curly-spacing": [2, "always"],
"quotes": [2, "double", "avoid-escape"],
"semi": [2, "always"],
"semi-spacing": [2, { "before": false, "after": true }],
"keyword-spacing": ["error", {"before": true, "after": true, "overrides": {}}],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-infix-ops": [2, { "int32Hint": false}],
"spaced-comment": [2, "always", { "exceptions": ["-"] }],
}
}