-
Notifications
You must be signed in to change notification settings - Fork 109
/
eslint.config.js
64 lines (63 loc) · 2 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// @ts-check
import antfu from '@antfu/eslint-config'
export default antfu(
{
// typescript: {
// tsconfigPath: 'tsconfig.json',
// parserOptions: {
// project: 'tsconfig.json',
// tsconfigRootDir: import.meta.dirname,
// },
// },
rules: {
'no-template-curly-in-string': 'error',
'no-alert': 'off',
'no-undef-init': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'no-async-promise-executor': 'off',
'unused-imports/no-unused-vars': 'warn',
'jsonc/sort-keys': 'off',
'no-irregular-whitespace': 'warn',
'import/no-cycle': ['error', { maxDepth: 2 }],
'max-statements-per-line': ['error', { max: 2 }],
'eqeqeq': 'warn',
'vue/eqeqeq': 'warn',
'vue/require-valid-default-prop': 'off', // no working with new props system
'vue/no-unused-refs': 'warn',
'vue/max-attributes-per-line': ['error', { singleline: { max: 5 }, multiline: { max: 1 } }],
'vue/no-v-text-v-html-on-component': 'off',
'vue/no-mutating-props': ['error', { shallowOnly: true }],
'vue/no-ref-as-operand': 'error',
'ts/consistent-type-definitions': 'off',
'ts/strict-boolean-expressions': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-throw-literal': 'off',
'ts/no-unsafe-argument': 'off',
'ts/no-unsafe-call': 'off',
'ts/no-unsafe-return': 'off',
'ts/no-unsafe-member-access': 'off',
'ts/no-misused-promises': 'off',
'style/max-statements-per-line': ['error', { max: 2 }],
'regexp/no-super-linear-backtracking': 'off',
'regexp/no-unused-capturing-group': 'off',
'unicorn/consistent-function-scoping': 'off',
'antfu/no-top-level-await': 'off',
},
},
{
ignores: [
'**/.ref/**/*',
'**/.ref-*/**/*',
'**/__*',
'node_modules',
'**/node_modules/**',
'dist/',
'**/dist/**',
'cache/',
'**/cache/**',
'**/.fiction/**',
'.pnpmfile.cjs',
'docs/**/*.md',
],
},
)