forked from klinecharts/KLineChart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
34 lines (33 loc) · 907 Bytes
/
eslint.config.js
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
import { FlatCompat } from '@eslint/eslintrc'
import love from 'eslint-config-love'
import progress from 'eslint-plugin-file-progress'
export default [
...new FlatCompat().extends('eslint-config-standard'),
{
...love,
files: ['src/**/*.js', 'src/**/*.ts']
},
{
plugins: {
'file-progress': progress
},
ignores: [
'eslint.config.js',
'scripts/**/*',
'dist/**/*',
'docs/**/*',
'index.js'
],
rules: {
'file-progress/activate': 1,
complexity: 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-unsafe-type-assertion': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/class-methods-use-this': 'off',
'@typescript-eslint/max-params': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/prefer-destructuring': 'off'
}
}
]