From 8e85be96a154b371b4cf1fb1924155d96150f949 Mon Sep 17 00:00:00 2001 From: Pauline Date: Wed, 20 Dec 2023 01:58:22 -0500 Subject: chore(lint): bump deps and fix linting/format --- .vscode/settings.json | 72 ++++++++++++++++++--------------------------------- 1 file changed, 25 insertions(+), 47 deletions(-) (limited to '.vscode/settings.json') 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" -- cgit