2023-04-23 14:19:03 +08:00
|
|
|
{
|
|
|
|
"prettier.enable": false,
|
|
|
|
"editor.codeActionsOnSave": {
|
2024-05-24 15:15:59 +08:00
|
|
|
"source.fixAll.eslint": "explicit"
|
2023-04-23 14:19:03 +08:00
|
|
|
},
|
|
|
|
"files.associations": {
|
|
|
|
"*.css": "postcss"
|
|
|
|
},
|
2023-04-23 23:14:52 +08:00
|
|
|
"editor.formatOnSave": false,
|
2024-05-24 15:15:59 +08:00
|
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
|
|
"i18n-ally.localesPaths": [
|
|
|
|
"locales"
|
2024-05-25 14:39:34 +08:00
|
|
|
],
|
|
|
|
// Enable the ESlint flat config support
|
|
|
|
// (remove this if your ESLint extension above v3.0.5)
|
|
|
|
"eslint.experimental.useFlatConfig": true,
|
|
|
|
|
|
|
|
// Disable the default formatter, use eslint instead
|
|
|
|
"prettier.enable": false,
|
|
|
|
"editor.formatOnSave": false,
|
|
|
|
|
|
|
|
// Auto fix
|
|
|
|
"editor.codeActionsOnSave": {
|
|
|
|
"source.fixAll.eslint": "explicit",
|
|
|
|
"source.organizeImports": "never"
|
|
|
|
},
|
|
|
|
|
|
|
|
// 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",
|
|
|
|
"xml",
|
|
|
|
"gql",
|
|
|
|
"graphql",
|
|
|
|
"astro"
|
2024-05-24 15:15:59 +08:00
|
|
|
]
|
2023-04-23 14:19:03 +08:00
|
|
|
}
|