This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
63 lines (61 loc) · 1.5 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"semistandard",
"plugin:react/all",
"plugin:jsx-a11y/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jsx-a11y",
"babel"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"linebreak-style": ["error", "unix"],
"no-console": "error",
"object-curly-spacing": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"react/forbid-component-props": "off",
"react/forbid-prop-types": "off",
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-max-depth": "off",
"react/jsx-max-props-per-line": ["error", {"when": "multiline"}],
"react/jsx-no-literals": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-sort-props": "off",
"react/no-set-state": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/require-optimization": "off",
"babel/semi": ["error", "always"]
},
"settings": {
"react": {
"version": "detect"
}
}
}