-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.37 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
{
"env": {
"browser": true,
"node": true,
"es6": true,
"commonjs": true
},
"settings": {
"import/resolvers": {
"webpack": {
"config": "path.join(__dirname, '/config', 'default.js')"
}
},
"react": {
"version": "detect"
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"no-var": "error",
"semi": ["error", "never"],
"quotes": ["error", "single"],
"eol-last": ["error", "always"],
"arrow-body-style": ["warn", "as-needed"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["warn", "prefer-single"],
"no-extra-semi": "off",
"no-case-declarations": "off",
"no-async-promise-executor": "off",
"no-restricted-imports": ["off"],
"import/no-unresolved": "off",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-key": "off",
"react/no-unescaped-entities": "off",
"react/jsx-filename-extension": [2, { "extensions": [".jsx", ".tsx"] }],
"react/prop-types": "off",
"no-irregular-whitespace": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-unused-vars": ["error", { "args": "none" }]
}
}