-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
45 lines (44 loc) · 1.17 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
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"plugins": ["react", "unused-imports", "simple-import-sort", "import"],
"extends": [
"airbnb",
"prettier",
"plugin:react/jsx-runtime"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/function-component-definition": [2, {"namedComponents": "arrow-function", "unnamedComponents": "arrow-function"}],
"react/destructuring-assignment": "off",
"react/jsx-props-no-spreading": "off",
"prefer-arrow-callback": "error",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"settings": {
"react": {
"version": "detect"
}
}
}