Skip to content

Commit 65ed846

Browse files
authored
Migrate to v8 of @typescript-eslint (#1178)
* Migrate to v8 of @typescript-eslint In order to get dependabot back on (#1177) and get on latest typescript, we need to fix new rules first * Turn off some new defaults * Fix some source for new defaults Issue: #1169 * Fix prettier style
1 parent fb56e76 commit 65ed846

File tree

15 files changed

+145
-201
lines changed

15 files changed

+145
-201
lines changed

.eslintrc.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@
1010
"curly": "error",
1111
"eqeqeq": "warn",
1212
"no-throw-literal": "warn",
13-
"semi": "off",
13+
// TODO "@typescript-eslint/semi" rule moved to https://eslint.style
14+
"semi": "error",
15+
// Mostly fails tests, ex. expect(...).to.be.true returns a Chai.Assertion
16+
"@typescript-eslint/no-unused-expressions": "off",
1417
"@typescript-eslint/no-non-null-assertion": "off",
15-
"@typescript-eslint/semi": "error"
18+
"@typescript-eslint/no-unused-vars": [
19+
"error",
20+
{
21+
"args": "all",
22+
"argsIgnorePattern": "^_",
23+
"caughtErrors": "none"
24+
}
25+
]
1626
},
1727
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
1828
"ignorePatterns": ["out", "dist", "**/*.d.ts"]

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ updates:
1414
update-types: ["version-update:semver-major"]
1515
- dependency-name: "strip-ansi"
1616
update-types: ["version-update:semver-major"]
17-
- dependency-name: "@typescript-eslint/*"
18-
update-types: ["version-update:semver-major"]
1917
- dependency-name: "*chai*"
2018
update-types: ["version-update:semver-major"]
2119
- dependency-name: "@vscode/vsce"

0 commit comments

Comments
 (0)