-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.08 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
{
"settings": {
"react": {
"version": "17.0.2"
}
},
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": ["plugin:react/recommended", "standard"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": "off",
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["**/*.test.js", "**/*.spec.js"] }
],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"linebreak-style": 0,
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-tabs": "off",
"react/prefer-es6-class": 0,
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/no-unused-prop-types": [2, { "skipShapeProps": true }],
"react/react-in-jsx-scope": "off",
"react/forbid-prop-types": [0],
"react/require-extension": "off",
"semi": [2, "always"],
"space-before-function-paren": "off"
}
}