mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-23 10:52:34 +01:00
41 lines
893 B
JavaScript
41 lines
893 B
JavaScript
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,
|
|
}],
|
|
},
|
|
},
|
|
],
|
|
};
|