mirror of
https://github.com/koel/koel
synced 2024-11-14 16:37:28 +00:00
49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
{
|
|
// 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", "fixable": true },
|
|
{ "rule": "format/*", "severity": "off", "fixable": true },
|
|
{ "rule": "*-indent", "severity": "off", "fixable": true },
|
|
{ "rule": "*-spacing", "severity": "off", "fixable": true },
|
|
{ "rule": "*-spaces", "severity": "off", "fixable": true },
|
|
{ "rule": "*-order", "severity": "off", "fixable": true },
|
|
{ "rule": "*-dangle", "severity": "off", "fixable": true },
|
|
{ "rule": "*-newline", "severity": "off", "fixable": true },
|
|
{ "rule": "*quotes", "severity": "off", "fixable": true },
|
|
{ "rule": "*semi", "severity": "off", "fixable": true }
|
|
],
|
|
|
|
// Enable eslint for all supported languages
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact",
|
|
"vue",
|
|
"html",
|
|
"markdown",
|
|
"json",
|
|
"jsonc",
|
|
"yaml",
|
|
"toml",
|
|
"xml",
|
|
"gql",
|
|
"graphql",
|
|
"astro",
|
|
"css",
|
|
"less",
|
|
"scss",
|
|
"pcss",
|
|
"postcss"
|
|
]
|
|
}
|