73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
|
{
|
||
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||
|
// Enable the flat config support
|
||
|
"eslint.experimental.useFlatConfig": true,
|
||
|
// Disable the default formatter
|
||
|
"prettier.enable": false,
|
||
|
"editor.formatOnSave": false,
|
||
|
"eslint.alwaysShowStatus": true,
|
||
|
// 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": "@stylistic/*",
|
||
|
"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"
|
||
|
}
|
||
|
],
|
||
|
// The following is optional.
|
||
|
// It's better to put under project setting `.vscode/settings.json`
|
||
|
// to avoid conflicts with working with different eslint configs
|
||
|
// that does not support all formats.
|
||
|
"eslint.validate": [
|
||
|
"javascript",
|
||
|
"javascriptreact",
|
||
|
"typescript",
|
||
|
"typescriptreact",
|
||
|
"vue",
|
||
|
"html",
|
||
|
"markdown",
|
||
|
"json",
|
||
|
"jsonc",
|
||
|
"yaml"
|
||
|
],
|
||
|
"i18n-ally.localesPaths": [
|
||
|
"layers/site/components/site/login/locale"
|
||
|
],
|
||
|
"typescript.tsdk": "node_modules/typescript/lib"
|
||
|
}
|