-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
129 lines (129 loc) · 3.05 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"root": true,
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"env": {
"browser": true,
"amd": true,
"node": true,
"jest": true
},
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:unicorn/recommended"
],
"rules": {
"prettier/prettier": 2,
"max-len": [2, { "code": 100 }],
"consistent-return": 0,
"import/order": [2, {
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"unknown"
],
"pathGroups": [
{
"pattern": "react**",
"group": "external",
"position": "before"
},
{
"pattern": "@material-ui/**",
"group": "external",
"position": "after"
},
{
"pattern": "**/*.scss",
"group": "sibling",
"position": "after"
},
{
"pattern": "./*.scss",
"group": "sibling",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}],
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/jsx-no-literals": [2, {
"noStrings": true,
"ignoreProps": true
}],
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": [2, {
"html": "ignore",
"exceptions": ["Label"]
}],
"jsx-a11y/control-has-associated-label": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-static-element-interactions": 0,
"unicorn/filename-case": [ 2, {
"cases": {
"camelCase": true,
"pascalCase": true
}
}],
"unicorn/no-array-reduce": 0,
"unicorn/no-array-for-each": 0,
"unicorn/prefer-spread": 0,
"unicorn/prevent-abbreviations": 0,
"no-console": 2
},
"plugins": ["prettier", "unicorn", "import", "react", "react-hooks", "testing-library", "jest-dom"],
"globals": {
"window": true,
"document": true,
"localStorage": true,
"sessionStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true
}
}