12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- {
- // Enable the ESlint flat config support
- "eslint.experimental.useFlatConfig": true,
- "stylelint.validate": [
- "css",
- "less",
- "postcss",
- "scss",
- "sass",
- "vue"
- ],
- // Disable the default formatter, use eslint instead
- "prettier.enable": false,
- "editor.formatOnSave": false,
- // Auto fix
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": "explicit",
- "source.organizeImports": "never",
- "source.fixAll.stylelint": "explicit"
- },
- // Silent the stylistic rules in you IDE, but still auto fix them
- "eslint.rules.customizations": [
- { "rule": "style/*", "severity": "off" },
- { "rule": "format/*", "severity": "off" },
- { "rule": "*-indent", "severity": "off" },
- { "rule": "*-spacing", "severity": "off" },
- { "rule": "*-spaces", "severity": "off" },
- { "rule": "*-order", "severity": "off" },
- { "rule": "*-dangle", "severity": "off" },
- { "rule": "*-newline", "severity": "off" },
- { "rule": "*quotes", "severity": "off" },
- { "rule": "*semi", "severity": "off" }
- ],
- // Enable eslint for all supported languages
- "eslint.validate": [
- "javascript",
- "javascriptreact",
- "typescript",
- "typescriptreact",
- "vue",
- "html",
- "markdown",
- "json",
- "jsonc",
- "yaml",
- "toml"
- ],
- "cSpell.words": [
- "nocheck",
- "unocss"
- ]
- }
|