1
mirror of https://github.com/importantimport/urara.git synced 2024-09-16 17:18:40 +08:00
urara/.vscode/settings.json
藍+85CD 3becb3930e
refactor(eslint): use importantimport config (#82)
* refactor: remove eslint, prettier

* refactor(eslint): use importantimport config

* refactor(eslint): use unstable_ts_config

* refactor: split unocss config

* refactor!: lint code

* fix(footer): class

* chore: bump node version

* chore: bump pnpm version

* chore(vite): remove useless optimization

* chore(package): bump version
2024-09-11 18:29:31 +08:00

55 lines
1.4 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"
],
// Enable unstable_ts_config
"eslint.options": {
"flags": ["unstable_ts_config"]
}
}