|
| 1 | +{ |
| 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" |
| 7 | + }, |
| 8 | + |
| 9 | + "files.autoSave": "onWindowChange", |
| 10 | + "files.eol": "\n", |
| 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" |
| 19 | + }, |
| 20 | + |
| 21 | + // Silent the stylistic rules in you IDE, but still auto fix them |
| 22 | + "eslint.rules.customizations": [ |
| 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 } |
| 33 | + ], |
| 34 | + |
| 35 | + // Enable eslint for all supported languages |
| 36 | + "eslint.validate": [ |
| 37 | + "javascript", |
| 38 | + "javascriptreact", |
| 39 | + "typescript", |
| 40 | + "typescriptreact", |
| 41 | + "vue", |
| 42 | + "html", |
| 43 | + "markdown", |
| 44 | + "json", |
| 45 | + "jsonc", |
| 46 | + "yaml", |
| 47 | + "toml", |
| 48 | + "xml", |
| 49 | + "gql", |
| 50 | + "graphql", |
| 51 | + "astro", |
| 52 | + "svelte", |
| 53 | + "css", |
| 54 | + "less", |
| 55 | + "scss", |
| 56 | + "pcss", |
| 57 | + "postcss" |
| 58 | + ] |
| 59 | +} |
0 commit comments