diff options
Diffstat (limited to '.vscode/settings.json')
-rw-r--r-- | .vscode/settings.json | 72 |
1 files changed, 25 insertions, 47 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index 15853eb..f329032 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,59 +18,36 @@ "/packages/ctjs/types/*": true, "**/dist": true }, - // Enable the flat config support + // enable the eslint flat config support "eslint.experimental.useFlatConfig": true, - // Disable the default formatter + + // disable the default formatter, use eslint "prettier.enable": false, "editor.formatOnSave": false, - // Auto fix + + // automatically fix "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.organizeImports": false + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" }, - // Silent the stylistic rules in you IDE, but still auto fix them + + // silent stylistic rules in the ide, but still fix them + /* "eslint.rules.customizations": [ - { - "rule": "@stylistic/*", - "severity": "off" - }, - { - "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" - } + { "rule": "@stylistic/*", "severity": "warn" }, + { "rule": "style*", "severity": "warn" }, + { "rule": "*-indent", "severity": "warn" }, + { "rule": "*-spacing", "severity": "warn" }, + { "rule": "*-spaces", "severity": "warn" }, + { "rule": "*-order", "severity": "warn" }, + { "rule": "*-dangle", "severity": "warn" }, + { "rule": "*-newline", "severity": "warn" }, + { "rule": "*quotes", "severity": "warn" }, + { "rule": "*semi", "severity": "warn" } ], + */ + + // enable eslint for all supported languages "eslint.validate": [ "javascript", "javascriptreact", @@ -82,7 +59,8 @@ "json", "jsonc", "yaml", - "astro" + "astro", + "toml" ], "css.customData": [ ".vscode/tailwind.json" |