1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 18:32:34 +01:00
lossless-cut/.eslintrc.cjs

38 lines
937 B
JavaScript
Raw Normal View History

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: {
'no-console': 0,
'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
'unicorn/prefer-node-protocol': 0, // todo
2024-01-02 16:45:43 +01:00
'@typescript-eslint/no-var-requires': 0, // todo
'react/display-name': 0, // todo
},
2024-02-20 15:48:40 +01:00
overrides: [
{
files: ['./src/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}'],
env: {
node: false,
browser: true,
},
rules: {
'import/no-extraneous-dependencies': ['error', {
devDependencies: true,
optionalDependencies: false,
}],
},
},
{
files: ['./script/**/*.{js,cjs,mjs,jsx,ts,tsx,mts}', 'vite.config.js'],
rules: {
'import/no-extraneous-dependencies': ['error', {
devDependencies: true,
optionalDependencies: false,
}],
},
},
],
2024-01-02 16:45:43 +01:00
};