-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.mjs
More file actions
57 lines (56 loc) · 1.11 KB
/
eslint.config.mjs
File metadata and controls
57 lines (56 loc) · 1.11 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
import antfu from '@antfu/eslint-config'
const nitro = {
ignores: [
'**/core.ts',
'**/.output',
'**/.nitro',
'**/.netlify',
'**/.nuxt',
'**/*.gen.*',
'**/dist',
'**/assets',
'**/vfs',
'README.md',
'CONTRIBUTING.md',
'CLAUDE.md',
'.docs/**/*.md',
'.docs/.vitepress/**/*',
'**/*.graphql',
'**/README.md',
'examples/vite-vue/src/**/*.vue',
'examples/vite-react/src/**/*.{tsx,jsx}',
'content/**/*',
'vercube',
// Test fixtures with intentional syntax errors
'tests/fixtures/**/syntax-error.*',
],
}
export default antfu(
{
...nitro,
},
{
rules: {
'node/prefer-global/process': 'off',
'no-new-func': 'off',
},
},
{
files: [
'playgrounds/**/*.{ts,js,mjs,cjs}',
],
rules: {
'no-console': 'off',
'unused-imports/no-unused-vars': 'off',
},
},
{
files: ['examples/**', 'crates/**'],
rules: {
'unused-imports/no-unused-vars': 'off',
'style/eol-last': 'off',
'pnpm/json-enforce-catalog': 'off',
'pnpm/json-prefer-workspace-settings': 'off',
},
},
)