|
1 | 1 | {
|
2 |
| - /* ========================== Editor ========================== */ |
3 |
| - "editor.formatOnSave": false, |
4 |
| - "editor.minimap.renderCharacters": false, |
5 |
| - "editor.tabSize": 2, |
6 |
| - "editor.fontLigatures": true, |
7 |
| - "editor.stickyTabStops": true, |
8 |
| - "editor.defaultFormatter": "esbenp.prettier-vscode", |
9 |
| - "editor.codeActionsOnSave": { |
10 |
| - "source.fixAll": "never", |
11 |
| - "source.fixAll.eslint": "explicit" |
| 2 | + "explorer.fileNesting.enabled": true, |
| 3 | + "explorer.fileNesting.patterns": { |
| 4 | + "tsconfig.json": "tsconfig.*.json, env.d.ts", |
| 5 | + "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*", |
| 6 | + "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .prettier*, prettier*, .editorconfig" |
12 | 7 | },
|
| 8 | + |
13 | 9 | "files.autoSave": "onWindowChange",
|
14 |
| - "files.trimTrailingWhitespace": true, |
15 | 10 | "files.eol": "\n",
|
16 |
| - "files.insertFinalNewline": true, |
17 |
| - "git.suggestSmartCommit": false, |
18 |
| - "emmet.triggerExpansionOnTab": false, |
19 |
| - "emmet.showSuggestionsAsSnippets": true, |
20 |
| - "emmet.includeLanguages": { |
21 |
| - "vue-html": "html", |
22 |
| - "postcss": "css" |
23 |
| - }, |
24 |
| - "search.exclude": { |
25 |
| - "**/*.snap": true, |
26 |
| - "**/*.svg": true, |
27 |
| - "**/.git": true, |
28 |
| - "**/.github": false, |
29 |
| - "**/.nuxt": true, |
30 |
| - "**/.output": true, |
31 |
| - "**/.pnpm": true, |
32 |
| - "**/.vscode": true, |
33 |
| - "**/.yarn": true, |
34 |
| - "**/assets": true, |
35 |
| - "**/bower_components": true, |
36 |
| - "**/dist/**": true, |
37 |
| - "**/logs": true, |
38 |
| - "**/node_modules": true, |
39 |
| - "**/out/**": true, |
40 |
| - "**/package-lock.json": true, |
41 |
| - "**/pnpm-lock.yaml": true, |
42 |
| - "**/public": true, |
43 |
| - "**/temp": true, |
44 |
| - "**/yarn.lock": true, |
45 |
| - "**/CHANGELOG*": true, |
46 |
| - "**/LICENSE*": true |
| 11 | + |
| 12 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 13 | + "editor.formatOnSave": false, |
| 14 | + |
| 15 | + // Auto fix |
| 16 | + "editor.codeActionsOnSave": { |
| 17 | + "source.fixAll.eslint": "explicit", |
| 18 | + "source.organizeImports": "never" |
47 | 19 | },
|
48 |
| - /* ========================== Prettier ========================== */ |
49 |
| - "prettier.enable": true, |
50 |
| - "prettier.htmlWhitespaceSensitivity": "css", |
51 |
| - "prettier.jsxSingleQuote": false, |
52 |
| - "prettier.proseWrap": "preserve", |
53 |
| - "prettier.quoteProps": "as-needed", |
54 |
| - "prettier.tabWidth": 2, |
55 |
| - "prettier.useTabs": false, |
56 |
| - "prettier.vueIndentScriptAndStyle": false, |
57 |
| - "prettier.semi": false, |
58 |
| - "prettier.arrowParens": "always", |
59 |
| - "prettier.bracketSameLine": false, |
60 |
| - "prettier.bracketSpacing": true, |
61 |
| - "prettier.printWidth": 100, |
62 |
| - "prettier.singleQuote": true, |
63 |
| - "prettier.trailingComma": "none", |
64 |
| - "prettier.singleAttributePerLine": true, |
65 |
| - /* ========================== ESLint ========================== */ |
66 |
| - "eslint.enable": true, |
67 |
| - "eslint.format.enable": true, |
68 |
| - "eslint.useFlatConfig": true, |
| 20 | + |
69 | 21 | // Silent the stylistic rules in you IDE, but still auto fix them
|
70 | 22 | "eslint.rules.customizations": [
|
71 |
| - { |
72 |
| - "rule": "style/*", |
73 |
| - "severity": "off" |
74 |
| - }, |
75 |
| - { |
76 |
| - "rule": "format/*", |
77 |
| - "severity": "off" |
78 |
| - }, |
79 |
| - { |
80 |
| - "rule": "*-indent", |
81 |
| - "severity": "off" |
82 |
| - }, |
83 |
| - { |
84 |
| - "rule": "*-spacing", |
85 |
| - "severity": "off" |
86 |
| - }, |
87 |
| - { |
88 |
| - "rule": "*-spaces", |
89 |
| - "severity": "off" |
90 |
| - }, |
91 |
| - { |
92 |
| - "rule": "*-order", |
93 |
| - "severity": "off" |
94 |
| - }, |
95 |
| - { |
96 |
| - "rule": "*-dangle", |
97 |
| - "severity": "off" |
98 |
| - }, |
99 |
| - { |
100 |
| - "rule": "*-newline", |
101 |
| - "severity": "off" |
102 |
| - }, |
103 |
| - { |
104 |
| - "rule": "*quotes", |
105 |
| - "severity": "off" |
106 |
| - }, |
107 |
| - { |
108 |
| - "rule": "*semi", |
109 |
| - "severity": "off" |
110 |
| - } |
| 23 | + { "rule": "style/*", "severity": "off", "fixable": true }, |
| 24 | + { "rule": "format/*", "severity": "off", "fixable": true }, |
| 25 | + { "rule": "*-indent", "severity": "off", "fixable": true }, |
| 26 | + { "rule": "*-spacing", "severity": "off", "fixable": true }, |
| 27 | + { "rule": "*-spaces", "severity": "off", "fixable": true }, |
| 28 | + { "rule": "*-order", "severity": "off", "fixable": true }, |
| 29 | + { "rule": "*-dangle", "severity": "off", "fixable": true }, |
| 30 | + { "rule": "*-newline", "severity": "off", "fixable": true }, |
| 31 | + { "rule": "*quotes", "severity": "off", "fixable": true }, |
| 32 | + { "rule": "*semi", "severity": "off", "fixable": true } |
111 | 33 | ],
|
| 34 | + |
| 35 | + // Enable eslint for all supported languages |
112 | 36 | "eslint.validate": [
|
113 | 37 | "javascript",
|
114 | 38 | "javascriptreact",
|
|
120 | 44 | "json",
|
121 | 45 | "jsonc",
|
122 | 46 | "yaml",
|
123 |
| - "toml" |
| 47 | + "toml", |
| 48 | + "xml", |
| 49 | + "gql", |
| 50 | + "graphql", |
| 51 | + "astro", |
| 52 | + "svelte", |
| 53 | + "css", |
| 54 | + "less", |
| 55 | + "scss", |
| 56 | + "pcss", |
| 57 | + "postcss" |
124 | 58 | ]
|
125 | 59 | }
|
0 commit comments