-
-
Notifications
You must be signed in to change notification settings - Fork 948
Expand file tree
/
Copy patheslint.config.js
More file actions
30 lines (29 loc) · 801 Bytes
/
Copy patheslint.config.js
File metadata and controls
30 lines (29 loc) · 801 Bytes
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
import { FlatCompat } from '@eslint/eslintrc'
import love from 'eslint-config-love'
export default [
...new FlatCompat().extends('eslint-config-standard'),
{
...love,
files: ['src/**/*.js', 'src/**/*.ts']
},
{
ignores: [
'eslint.config.js',
'scripts/**/*',
'dist/**/*',
'docs/**/*',
'index.js'
],
rules: {
complexity: 'off',
'promise/avoid-new': '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'
}
}
]