2024-09-13 00:19:27 +08:00
|
|
|
import config from 'eslint-config-love'
|
2024-09-13 01:00:03 +08:00
|
|
|
import progress from 'eslint-plugin-file-progress'
|
2024-09-13 00:19:27 +08:00
|
|
|
|
|
|
|
export default [
|
|
|
|
{
|
|
|
|
...config,
|
|
|
|
files: ['src/**/*.js', 'src/**/*.ts'],
|
|
|
|
},
|
|
|
|
{
|
2024-09-13 01:00:03 +08:00
|
|
|
plugins: {
|
|
|
|
'file-progress': progress
|
|
|
|
},
|
2024-09-13 00:19:27 +08:00
|
|
|
ignores: [
|
|
|
|
'eslint.config.js',
|
|
|
|
'scripts/**/*',
|
|
|
|
'dist/**/*',
|
|
|
|
'docs/**/*',
|
|
|
|
'index.js'
|
2024-09-13 01:00:03 +08:00
|
|
|
],
|
2024-09-13 00:19:27 +08:00
|
|
|
rules: {
|
2024-09-13 01:00:03 +08:00
|
|
|
"file-progress/activate": 1,
|
2024-09-13 00:19:27 +08:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"@typescript-eslint/class-methods-use-this": "off",
|
2024-10-15 01:50:28 +08:00
|
|
|
"@typescript-eslint/max-params": "off",
|
2024-10-21 22:45:23 +08:00
|
|
|
"@typescript-eslint/no-magic-numbers": "off",
|
|
|
|
"@typescript-eslint/prefer-destructuring": "off"
|
2024-09-13 00:19:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|