|
1 | 1 | // Run this command to generate base config and vs code settings: |
2 | 2 | // pnpm dlx @antfu/eslint-config@latest |
3 | 3 |
|
4 | | -import antfu from "@antfu/eslint-config"; |
| 4 | +import antfu from '@antfu/eslint-config'; |
5 | 5 |
|
6 | 6 | export default antfu({ |
7 | | - type: "app", |
| 7 | + type: 'app', |
8 | 8 | vue: true, |
9 | 9 | typescript: true, |
10 | 10 | formatters: true, |
11 | 11 | stylistic: { |
12 | 12 | indent: 2, |
13 | 13 | semi: true, |
14 | | - quotes: "double", |
| 14 | + quotes: 'single', |
15 | 15 | }, |
16 | 16 | }, { |
17 | 17 | rules: { |
18 | | - "ts/no-redeclare": "off", |
19 | | - "ts/consistent-type-definitions": ["error", "type"], |
20 | | - "no-console": ["warn"], |
21 | | - "antfu/no-top-level-await": ["off"], |
22 | | - "node/prefer-global/process": ["off"], |
23 | | - "node/no-process-env": ["error"], |
24 | | - "perfectionist/sort-imports": ["error", { |
| 18 | + 'ts/no-redeclare': 'off', |
| 19 | + 'ts/consistent-type-definitions': ['error', 'type'], |
| 20 | + 'no-console': ['warn'], |
| 21 | + 'antfu/no-top-level-await': ['off'], |
| 22 | + 'node/prefer-global/process': ['off'], |
| 23 | + 'node/no-process-env': ['error'], |
| 24 | + 'perfectionist/sort-imports': ['error', { |
25 | 25 | tsconfigRootDir: '.', |
26 | 26 | }], |
27 | | - "unicorn/filename-case": ["error", { |
28 | | - case: "kebabCase", |
29 | | - ignore: ["README.md"], |
| 27 | + 'unicorn/filename-case': ['error', { |
| 28 | + cases: { |
| 29 | + kebabCase: true, |
| 30 | + pascalCase: true, |
| 31 | + }, |
| 32 | + ignore: ['README.md'], |
30 | 33 | }], |
31 | 34 | }, |
32 | 35 | }); |
0 commit comments