-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
52 lines (52 loc) · 1.69 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
52
{
"root": true,
"ignorePatterns": ["build", "node_modules", "jsconfig.json"],
"env": {
"es6": true,
"browser": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module"
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"window": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true
},
"plugins": ["@babel", "react", "prettier", "react-hooks", "jsx-a11y"],
"extends": ["airbnb", "airbnb/hooks", "plugin:prettier/recommended", "plugin:react/recommended", "plugin:import/errors", "plugin:import/warnings"],
"settings": {
"react": {
"version": "17.0.2"
}
},
"rules": {
"react/state-in-constructor": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"max-len": [1, 180, 2, { "ignoreComments": true }],
"no-use-before-define": ["error", { "functions": true, "classes": true, "variables": false }],
"import/no-unresolved": 0,
"import/newline-after-import": "error",
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }],
"react/prop-types": [1, { "ignore": ["config"] }],
"react/require-default-props": [1, { "ignoreFunctionalComponents": true }],
"react-hooks/rules-of-hooks": "error",
"no-nested-ternary": "off",
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"linebreak-style": 0
}
}