Skip to content

Commit

Permalink
chore: update vscode eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Debbl committed Jan 18, 2025
1 parent 8937e76 commit 9105c0c
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"eslint.useFlatConfig": true,
// do not want to autofix some rules on save
"eslint.codeActionsOnSave.rules": [
"!prefer-const",
"!unused-imports/no-unused-imports",
"*"
// set severity of some rules on save in vscode development
"eslint.rules.customizations": [
{
"rule": "no-console",
"severity": "warn"
},
{
"rule": "prefer-const",
"severity": "warn"
},
{
"rule": "no-unused-vars",
"severity": "warn"
},
{
"rule": "unused-imports/no-unused-imports",
"severity": "warn"
}
],
"cSpell.words": [
"frontmatter",
Expand Down

0 comments on commit 9105c0c

Please sign in to comment.