返回 slidev
eslint.config.js
根目录 / eslint.config.js
1 import antfu from '@antfu/eslint-config'
2
3 export default antfu({
4 pnpm: true,
5 formatters: {
6 markdown: true,
7 css: true,
8 slidev: {
9 files: [
10 '**/slides.md',
11 '**/template.md',
12 '**/example.md',
13 'test/fixtures/markdown/**/*.md',
14 'packages/vscode/syntaxes/slidev.example.md',
15 ],
16 },
17 },
18 ignores: [
19 'skills/**/*.md',
20 'plans/**',
21 ],
22 })
23 .removeRules(
24 'vue/no-v-text-v-html-on-component',
25 'vue/component-name-in-template-casing',
26 'jsonc/sort-array-values',
27 'pnpm/yaml-no-duplicate-catalog-item',
28 )
29 .override('antfu/pnpm/package-json', {
30 ignores: [
31 'packages/create-theme/template/package.json',
32 'packages/create-app/template/package.json',
33 // VSCE and OVSX do not support pnpm catalog when reading `@types/vscode`'s version.
34 'packages/vscode/package.json',
35 ],
36 })
37 .remove('antfu/markdown/rules')
38
38 lines JAVASCRIPT