2023-12-14 14:28:02 +08:00
|
|
|
{
|
2024-01-12 12:43:57 +08:00
|
|
|
// Enable the ESlint flat config support
|
|
|
|
"eslint.experimental.useFlatConfig": true,
|
2023-12-14 14:28:02 +08:00
|
|
|
|
2024-01-12 12:43:57 +08:00
|
|
|
// Disable the default formatter, use eslint instead
|
|
|
|
"prettier.enable": false,
|
|
|
|
"editor.formatOnSave": false,
|
2023-12-14 14:28:02 +08:00
|
|
|
|
2024-01-12 12:43:57 +08:00
|
|
|
// Auto fix
|
|
|
|
"editor.codeActionsOnSave": {
|
|
|
|
"source.fixAll.eslint": "explicit",
|
|
|
|
"source.organizeImports": "never"
|
|
|
|
},
|
2023-12-14 14:28:02 +08:00
|
|
|
|
2024-01-12 12:43:57 +08:00
|
|
|
// Enable eslint for all supported languages
|
|
|
|
"eslint.validate": [
|
|
|
|
"javascript",
|
|
|
|
"javascriptreact",
|
|
|
|
"typescript",
|
|
|
|
"typescriptreact",
|
|
|
|
"vue",
|
|
|
|
"html",
|
|
|
|
"markdown",
|
|
|
|
"json",
|
|
|
|
"jsonc",
|
|
|
|
"yaml"
|
|
|
|
],
|
2023-12-14 14:28:02 +08:00
|
|
|
|
2024-01-12 12:43:57 +08:00
|
|
|
"pair-diff.patterns": [
|
|
|
|
{
|
|
|
|
"source": "./fixtures/output/**/*.*",
|
|
|
|
"target": "./fixtures/input/<base>"
|
|
|
|
}
|
2024-09-04 15:27:44 +08:00
|
|
|
],
|
|
|
|
"cSpell.words": [
|
|
|
|
"unref"
|
2024-01-12 12:43:57 +08:00
|
|
|
]
|
2023-12-14 14:28:02 +08:00
|
|
|
}
|