-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
49 lines (48 loc) · 1.67 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
stylistic: {
overrides: {
'perfectionist/sort-imports': 'off',
'import/order': ['error'],
'antfu/if-newline': 'off',
'jsonc/sort-keys': 'off',
'no-console': 'off',
'node/prefer-global/process': ['error', 'always'],
'node/prefer-global/console': ['error', 'always'],
'node/prefer-global/buffer': ['error', 'always'],
'style/comma-dangle': ['error', 'always-multiline'],
'style/quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true }],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/max-statements-per-line': ['error', { max: 2 }],
'ts/ban-ts-comment': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': ['error', { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }],
'vue/no-v-html': 'off',
'vue/no-irregular-whitespace': 'off',
'vue/script-indent': 'off',
},
},
typescript: true,
yaml: {
overrides: {
'yaml/quotes': ['error', { prefer: 'double' }],
'yaml/indent': ['error', 2, { indentBlockSequences: false }],
},
},
ignores: [
'**/node_modules',
'**/pnpm-lock.yaml',
'**/.turbo',
'**/tsconfig.json',
'**/dist/',
'**/types/',
'**/coverage/',
'**/templates/**/*.{yaml,yml}',
'**/Chart.yaml',
'**/*.d.ts',
'**/*.md/*.js',
'**/*.md/*.ts',
],
},
)