2024-01-02 16:45:43 +01:00
|
|
|
module.exports = {
|
2024-02-20 15:48:40 +01:00
|
|
|
extends: ['mifi'],
|
2024-01-02 16:45:43 +01:00
|
|
|
rules: {
|
|
|
|
'jsx-a11y/click-events-have-key-events': 0,
|
|
|
|
'jsx-a11y/interactive-supports-focus': 0,
|
|
|
|
'jsx-a11y/control-has-associated-label': 0,
|
|
|
|
},
|
2024-02-20 15:48:40 +01:00
|
|
|
|
|
|
|
overrides: [
|
|
|
|
{
|
2024-03-21 16:28:25 +01:00
|
|
|
files: ['./src/renderer/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}'],
|
2024-02-20 15:48:40 +01:00
|
|
|
env: {
|
|
|
|
node: false,
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
rules: {
|
2024-08-06 22:30:30 +02:00
|
|
|
'no-console': 0,
|
2024-03-15 14:45:33 +01:00
|
|
|
'import/no-extraneous-dependencies': 0,
|
2024-02-20 15:48:40 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-03-21 16:28:25 +01:00
|
|
|
files: ['./src/preload/**/*.{js,cjs,jsx,ts,tsx}'],
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
},
|
2024-08-06 22:30:30 +02:00
|
|
|
rules: {
|
|
|
|
'no-console': 0,
|
|
|
|
},
|
2024-03-21 16:28:25 +01:00
|
|
|
},
|
|
|
|
{
|
2024-08-06 15:57:24 +02:00
|
|
|
files: ['./script/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}', 'electron.vite.config.ts'],
|
2024-02-20 15:48:40 +01:00
|
|
|
rules: {
|
|
|
|
'import/no-extraneous-dependencies': ['error', {
|
|
|
|
devDependencies: true,
|
|
|
|
optionalDependencies: false,
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2024-01-02 16:45:43 +01:00
|
|
|
};
|