mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-10-09 02:30:01 +08:00
79 lines
1.6 KiB
JSON
79 lines
1.6 KiB
JSON
{
|
|
// Enable the ESlint flat config support
|
|
"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"
|
|
],
|
|
"i18n-ally.sourceLanguage": "zh_CN",
|
|
"i18n-ally.displayLanguage": "zh_CN",
|
|
"i18n-ally.enabledFrameworks": ["vue"],
|
|
"i18n-ally.editor.preferEditor": true,
|
|
"i18n-ally.keystyle": "nested",
|
|
"i18n-ally.localesPaths": [
|
|
"locales"
|
|
],
|
|
"commentTranslate.source": "Google"
|
|
}
|