-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.18 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
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier"],
"parser": "babel-eslint",
"rules": {
"no-useless-catch": ["off"],
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": 0,
"react/jsx-child-element-spacing": ["off"],
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"prettier/prettier": ["error", { "endOfLine":"auto" }] // для windows (убирает ошибку окончания строки lF/CRlF)
},
"settings": {
"propWrapperFunctions": [
"forbidExtraProps",
{ "property": "freeze", "object": "Object" },
{ "property": "myFavoriteWrapper" }
],
"linkComponents": ["Hyperlink", { "name": "Link", "linkAttribute": "to" }]
}
}