-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.eslintrc.cjs
40 lines (39 loc) · 893 Bytes
/
.eslintrc.cjs
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
module.exports = {
extends: ['mifi'],
rules: {
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/interactive-supports-focus': 0,
'jsx-a11y/control-has-associated-label': 0,
},
overrides: [
{
files: ['./src/renderer/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}'],
env: {
node: false,
browser: true,
},
rules: {
'no-console': 0,
'import/no-extraneous-dependencies': 0,
},
},
{
files: ['./src/preload/**/*.{js,cjs,jsx,ts,tsx}'],
env: {
browser: true,
},
rules: {
'no-console': 0,
},
},
{
files: ['./script/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}', 'electron.vite.config.ts'],
rules: {
'import/no-extraneous-dependencies': ['error', {
devDependencies: true,
optionalDependencies: false,
}],
},
},
],
};