-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
44 lines (41 loc) · 1.1 KB
/
eslint.config.mjs
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
35
36
37
38
39
40
41
42
43
44
import { audiolab } from '@swrlab/style-guide/eslint/index'
export default audiolab(
[
{
ignores: [],
},
{
rules: {
// previous config (does not trigger errors)
// 'import/no-extraneous-dependencies': 0,
// radix: 0,
// 'no-param-reassign': [2, { props: false }],
// 'no-restricted-syntax': 0,
// 'no-underscore-dangle': 0,
// 'no-return-assign': ['error', 'except-parens'],
// 'one-var': 0,
// should be fixed / easy to fix
'prefer-promise-reject-errors': 'off',
'n/prefer-global/process': 'off',
'n/prefer-global/buffer': 'off',
'n/no-process-exit': 'off',
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
'eslint-comments/require-description': 'off',
'vue/multi-word-component-names': 'off',
// could be fixed when converting to ESM
'import/order': 'off',
// a bit more complex to fix (but nice idea in general)
'import/no-default-export': 'off',
'no-console': 'off',
'func-names': 'off',
'jsonc/sort-keys': 'off',
// harder to fix
},
},
],
{
prettier: true,
comments: true,
}
)