-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.json
64 lines (64 loc) · 1.47 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
64
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:prettier/recommended",
"eslint-config-prettier"
],
"parser": "babel-eslint",
"rules": {
"prefer-promise-reject-errors": "off",
"react/prop-types": "off",
"import/no-unresolved": "off",
"react/prefer-stateless-function": [0],
"react/state-in-constructor": "off",
"react/no-access-state-in-setstate": "off",
"react/destructuring-assignment": "off",
"global-require": "off",
"consistent-return": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"import/order": "off",
"react/no-array-index-key": "off",
"react/jsx-one-expression-per-line": "off",
"import/no-cycle": "off",
"no-return-assign": "off",
"import/no-extraneous-dependencies": "off",
"no-case-declarations": "off",
"no-plusplus": "off",
"no-console": "error",
"array-callback-return": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100
}
]
},
"plugins": ["prettier", "react"],
"settings": {
"react": {
"version": "latest"
}
}
}