-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (46 loc) · 957 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
},
plugins: ['prettier', 'unicorn'],
extends: [
'plugin:unicorn/recommended',
'plugin:prettier/recommended',
'prettier',
],
parserOptions: {
ecmaFeatures: {},
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'unicorn/prefer-query-selector': 'off',
'import/no-unresolved': 'off',
'unicorn/prevent-abbreviations': 1,
'unicorn/filename-case': [
'error',
{
cases: {
camelCase: true,
pascalCase: true,
},
},
],
// 'import/extensions': [
// 'error',
// 'never',
// {
// svg: 'always',
// png: 'always',
// jpg: 'always',
// },
// ],
"import/extensions": "off",
quotes: ['error', 'single'],
},
settings: {
version: 'detect', // React version. "detect" автоматически выбирает версию, которую вы установили.
flowVersion: '0.53', // Версия потока
},
}