-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
48 lines (47 loc) · 1.12 KB
/
Copy patheslint.config.js
File metadata and controls
48 lines (47 loc) · 1.12 KB
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
// @ts-check
import antfu from '@antfu/eslint-config';
export default antfu(
{
type: 'app',
typescript: true,
vue: true,
formatters: true,
stylistic: {
indent: 2,
quotes: 'single',
semi: true,
},
ignores: [
'.nuxt',
'.nuxt/**',
'node_modules',
'node_modules/**',
'.output',
'.output/**',
'dist',
'dist/**',
'.env',
'.gitignore',
'service-account.json',
'nuxt.config.ts',
'**/*.md',
],
},
{
rules: {
'no-console': 'off',
'style/comma-dangle': ['error', 'always-multiline'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'ts/no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'vue/no-multiple-template-root': 'warn',
'node/prefer-global/process': 'off',
'antfu/top-level-function': 'off',
// Disable rules that were in old config but don't exist in new setup
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
},
},
);