Skip to content

Commit

Permalink
Chore: change eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostflyby committed Mar 13, 2024
1 parent 6223268 commit 83f3037
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 223 deletions.
31 changes: 20 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,31 @@
"browser": true,
"es2021": true
},
"plugins": [
"@stylistic"
],
"extends": [
"standard-with-typescript",
"plugin:@stylistic/disable-legacy"
"standard-with-typescript"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"@stylistic/comma-dangle": [
"error",
"always-multiline"
]
},
"overrides": [
{
"files": [
"*.ts",
"*.js"
],
"rules": {
"comma-dangle": [
"error",
"always-multiline"
],
"@typescript-eslint/comma-dangle": [
"error",
"always-multiline"
]
}
}
],
"rules": {},
"ignorePatterns": [
"build.mjs"
]
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"author": "ghostflyby",
"license": "GPL-3.0-only",
"devDependencies": {
"@stylistic/eslint-plugin": "^1.6.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"esbuild": "^0.20.1",
"eslint": "^8.0.1",
"eslint-config-standard-with-typescript": "^43.0.1",
Expand Down
Loading

0 comments on commit 83f3037

Please sign in to comment.