diff --git a/.vscode/settings.json b/.vscode/settings.json index b9e142a..d0f6e9f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,38 +1,29 @@ { - "prettier.enable": false, - "editor.formatOnSave": false, - "eslint.experimental.useFlatConfig": true, - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "mdx", - "html", - "markdown", - "json", - "jsonc", - "yaml", - "github-actions-workflow", - "css" - ], "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, - "eslint.codeActionsOnSave.rules": [ - "!unused-imports/no-unused-imports", - "*" - ], + + // If you want to silent stylistic rules "eslint.rules.customizations": [ { "rule": "@stylistic/*", "severity": "off" }, { "rule": "simple-import-sort/*", "severity": "off" }, - { "rule": "import/first", "severity": "off" }, - { "rule": "import/newline-after-import", "severity": "off" }, - { "rule": "import/no-duplicates", "severity": "off" }, - { "rule": "antfu/import-dedupe", "severity": "off" }, - { "rule": "format/prettier", "severity": "off" } + { "rule": "antfu/consistent-list-newline", "severity": "off" }, + { "rule": "hyoban/jsx-attribute-spacing", "severity": "off" }, + { "rule": "@stylistic/no-tabs", "severity": "default" }, + { "rule": "@stylistic/max-statements-per-line", "severity": "default" } ], - "typescript.tsdk": "node_modules/typescript/lib", - "typescript.enablePromptUseWorkspaceTsdk": true + // You may don't need this in the future + "eslint.experimental.useFlatConfig": true, + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "json" + ], + + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, }