-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (38 loc) · 1.26 KB
/
Copy patheslint.config.js
File metadata and controls
39 lines (38 loc) · 1.26 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
// @ts-check
import antfu from '@antfu/eslint-config'
import nuxt from './packages/rolldown/src/.nuxt/eslint.config.mjs'
export default antfu({
pnpm: true,
ignores: [
'skills',
'plans',
'e2e/fixtures/**/dist',
'e2e/fixtures/**/.vite-devtools',
// The production playgrounds are standalone workspaces (their own
// `pnpm-workspace.yaml`) that mirror a real user install, so they use
// plain dependency specifiers rather than the repo catalog and stay out
// of the repo-wide ESLint run.
'playgrounds/production',
'playgrounds/production-nuxt',
// `packages/oxc` is DevTools for the Oxc toolchain and dogfoods its own
// oxlint/oxfmt on itself, whose formatting (e.g. `arrowParens: "avoid"`)
// conflicts with this shared antfu config, so it is linted by its own
// toolchain (`pnpm -C packages/oxc lint`) rather than the repo-wide run.
'packages/oxc',
'!packages/oxc/package.json',
],
})
.append(nuxt())
.append({
files: ['./packages/rolldown/src/node/**/*.ts'],
rules: {
'no-console': 'off',
},
})
.removeRules(
'vue/no-template-shadow',
'pnpm/json-prefer-workspace-settings',
'markdown/fenced-code-language',
'e18e/prefer-static-regex',
'e18e/prefer-spread-syntax',
)