Skip to content

Commit

Permalink
chore: update vscode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed May 11, 2024
1 parent 06dccca commit 1a141ab
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit 1a141ab

Please sign in to comment.