-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
50 lines (50 loc) · 1.29 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
{
"plugins": [
"react",
"react-redux"
],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-redux/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
ecmaVersion: 12,
sourceType: "module",
ecmaFeatures: {
jsx: true,
modules: true,
experimentalObjectRestSpread: true
},
parser: "@babel/eslint-parser"
},
env: {
node: true,
browser: true,
jest: true,
es2021: true
},
rules: {
"react/jsx-no-target-blank": 0,
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/prop-types": 1,
"react-redux/connect-prefer-named-arguments": 2,
"react-redux/prefer-separate-component-file": 0,
"quotes": 0,
"no-console": ["error", { allow: ["warn", "error", "debug"] }],
"no-trailing-spaces": 1,
"eol-last": 1,
"no-unused-vars": [1, {
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "options"
}],
'prettier/prettier': ['error', {}, { usePrettierrc: true }]
},
"settings": {
"react": {
"version": "detect"
}
}
}