You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
{ |
|
// 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": "explicit", |
|
"source.organizeImports": "never" |
|
}, |
|
|
|
// Disable the MD033 rule |
|
"markdownlint.config": { |
|
"default": true, |
|
"MD033": false |
|
}, |
|
|
|
// Silent the stylistic rules in you IDE, but still auto fix them |
|
"eslint.rules.customizations": [ |
|
{ "rule": "style/*", "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" |
|
], |
|
|
|
// Specify the UI library you need to prompt |
|
"common-intellisense.showSlots": false, |
|
"common-intellisense.ui": [ |
|
"vant4" |
|
] |
|
}
|
|
|