-
Notifications
You must be signed in to change notification settings - Fork 7
/
eslint.config.mjs
53 lines (48 loc) · 1.3 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
45
46
47
48
49
50
51
52
53
import { sxzz } from '@sxzz/eslint-config'
export default sxzz(
[
{
languageOptions: {
parserOptions: {
emitDecoratorMetadata: true,
experimentalDecorators: true,
},
},
rules: {
eqeqeq: 'off',
'no-void': 0,
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/consistent-type-assertions': 0,
'no-restricted-syntax': 0,
'unicorn/filename-case': 0,
'unicorn/prefer-math-trunc': 0,
'unused-imports/no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
// for node server runtime
'require-await': 0,
'unicorn/no-array-callback-reference': 0,
'node/prefer-global/process': 0,
'node/prefer-global/buffer': 'off',
'no-duplicate-imports': 'off',
'unicorn/explicit-length-check': 0,
// readable push syntax
'unicorn/no-array-push-push': 0,
'unicorn/prefer-top-level-await': 0,
},
},
],
{
prettier: true,
markdown: true,
vue: false, // auto detection
unocss: false, // auto detection
},
)