Skip to content

Commit 4ec5dd9

Browse files
authored
test: utilize new flat ESLint configuration (#383)
* test: utilize new flat ESLint configuration * test: add TypeScript support to new flat ESLint config * chore: remove unused `eslint-plugin-tsdoc` from dependencies
1 parent 53d8f27 commit 4ec5dd9

File tree

5 files changed

+44
-92
lines changed

5 files changed

+44
-92
lines changed

.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.*
2-
!.eslint*
32
!.git*
43

54
dist/

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default [
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
...tseslint.configs.stylistic,
8+
{
9+
ignores: [".*", "coverage", "dist"],
10+
},
11+
];

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,24 @@
2424
],
2525
"scripts": {
2626
"format": "prettier --write --cache .",
27-
"lint": "eslint src",
27+
"lint": "eslint .",
2828
"prepack": "tsc",
2929
"test": "jest"
3030
},
3131
"dependencies": {
3232
"yargs": "^17.7.2"
3333
},
3434
"devDependencies": {
35+
"@eslint/js": "^9.0.0",
3536
"@types/jest": "^29.5.12",
3637
"@types/node": "^20.11.30",
3738
"@types/yargs": "^17.0.32",
38-
"@typescript-eslint/eslint-plugin": "^7.6.0",
39-
"@typescript-eslint/parser": "^7.6.0",
4039
"eslint": "^8.57.0",
41-
"eslint-plugin-tsdoc": "^0.2.17",
4240
"jest": "^29.7.0",
4341
"prettier": "^3.2.5",
4442
"ts-jest": "^29.1.2",
45-
"typescript": "^5.4.5"
43+
"typescript": "^5.4.5",
44+
"typescript-eslint": "^7.6.0"
4645
},
4746
"packageManager": "yarn@4.1.1"
4847
}

yarn.lock

Lines changed: 29 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)