-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.js
More file actions
62 lines (58 loc) · 1.2 KB
/
eslint.config.js
File metadata and controls
62 lines (58 loc) · 1.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import antfu from '@antfu/eslint-config';
export default antfu({
stylistic: {
quotes: 'single',
overrides: {
curly: ['error', 'all'],
},
},
rules: {
'style/semi': ['error', 'always'],
'style/arrow-parens': ['error', 'always'],
'ts/array-type': ['error', { default: 'generic' }],
'ts/no-shadow': 'off',
'no-cond-assign': 'off',
'import/no-nodejs-modules': 'off',
'yaml/no-empty-mapping-value': 'off',
'node/prefer-global/process': ['error', 'always'],
},
}, {
rules: {
'no-restricted-syntax': [
'error',
// Antfu default
'DebuggerStatement',
'LabeledStatement',
'WithStatement',
'TSEnumDeclaration[const=true]',
'TSExportAssignment',
// Do not allow emit
{
message: 'use props instead.',
selector: '[name=defineEmits]',
},
],
},
}, {
ignores: [
'data',
'node_modules',
'.nuxt',
'.output',
'.vscode',
'.yarn/',
'archive',
'prisma/migrations',
'kysely/db',
'kysely/seed.ts',
'public',
'docker-compose.*',
'package.json',
'*.lock',
'tsconfig.json',
'vercel.json',
'dist',
'benchmarks',
'packages',
],
});