-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
44 lines (37 loc) · 1.09 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
const { builtinModules } = require('node:module')
const modules = builtinModules.map((mod) => `node:${mod}`)
const importOrder = [
['builtin', 'external'],
'internal',
['sibling', 'parent', 'object', 'index'],
'type',
'unknown'
]
module.exports = {
extends: ['plugin:import/electron', 'viki-react', 'plugin:prettier/recommended'],
rules: {
'@typescript-eslint/triple-slash-reference': 'off',
'import/no-nodejs-modules': ['error', { allow: [...modules, 'electron'] }],
'import/no-mutable-exports': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/alt-text': 'off',
'no-console': 'off',
'no-restricted-syntax': 'off',
'no-nested-ternary': 'off',
'no-await-in-loop': 'off',
'import/order': [
1,
{
'newlines-between': 'always',
groups: importOrder,
warnOnUnassignedImports: true,
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}
]
}
}