-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
37 lines (37 loc) · 1.15 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
{
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended"
],
"env": {
"browser": true
},
"rules": {
"indent": ["error", 4],
"comma-dangle": 0,
"no-console": 0,
"new-cap": 0,
"no-underscore-dangle": 0,
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"func-names": ["error", "never"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": ["error", "never"],
"import/no-named-as-default": [0, "never"],
"import/prefer-default-export": [0, "never"],
"import/no-unresolved": [0, "never"],
"import/default": [0, "never"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-default-props": [0, "never"],
"react/jsx-uses-react": 1,
"react/jsx-tag-spacing": 0,
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/forbid-prop-types": [0]
}
}