-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc
85 lines (85 loc) · 2.36 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"plugin:storybook/recommended",
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint",
"plugins": ["jsx-a11y", "react"],
"rules": {
"semi": "error",
"no-array-constructor": "warn",
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": "warn",
"react/jsx-equals-spacing": ["warn", "never"],
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/jsx-handler-names": "warn",
"react/jsx-indent": ["warn", 2],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-key": "warn",
"react/jsx-max-props-per-line": [1,
{
"maximum": 3
}],
"react/jsx-no-bind": ["warn", {"allowArrowFunctions": true}],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": ["warn", { "ignoreCase": true }],
"react/jsx-no-undef": "warn",
"react/jsx-pascal-case": ["warn", {
"allowAllCaps": true,
"ignore": []
}],
"react/jsx-sort-props": 0,
"react/jsx-tag-spacing": "warn",
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/jsx-wrap-multilines": "warn",
"react/no-deprecated": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-unused-prop-types": "warn",
"react/prefer-es6-class": "warn",
"react/prefer-stateless-function": 0,
"react/prop-types": "warn",
"react/react-in-jsx-scope": "warn",
"react/require-render-return": "warn",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn",
"react/sort-prop-types": 0,
"react/style-prop-object": "warn",
"react/void-dom-elements-no-children": "warn",
"jsx-a11y/aria-role": "warn",
"jsx-a11y/no-access-key": "warn"
},
"settings": {
"import/ignore": [
"node_modules",
"\\.(json|css|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$",
],
"import/extensions": [".js"],
"import/resolver": {
"node": {
"extensions": [".js", ".json"]
}
},
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect"
}
}
}