-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
53 lines (53 loc) · 1.16 KB
/
.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
48
49
50
51
52
53
module.exports = {
root: true,
plugins: ['@dvcol/presets', 'import', 'react-hooks'],
extends: ['plugin:@dvcol/presets/react'],
globals: {
chrome: 'readonly',
},
env: {
webextensions: true,
},
parserOptions: {
project: ['tsconfig.json', 'tsconfig.spec.json'],
},
rules: {
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'type', 'object'],
'newlines-between': 'always-and-inside-groups',
pathGroups: [
{
group: 'internal',
pattern: '@dvcol/**',
position: 'before',
},
{
group: 'internal',
pattern: '@src/**',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
'import/no-extraneous-dependencies': [
'error',
{
packageDir: __dirname,
},
],
'react-hooks/exhaustive-deps': 'off',
'class-methods-use-this': 'off',
'jsx-a11y/no-autofocus': [
2,
{
ignoreNonDOM: true,
},
],
},
};