Skip to content

Commit

Permalink
fix: add eslintjs types (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
leifarriens authored Oct 16, 2024
1 parent 66e3f05 commit e13e3c7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
36 changes: 27 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tooling/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"devDependencies": {
"@acme/prettier-config": "workspace:*",
"@acme/tsconfig": "workspace:*",
"@types/eslint__js": "8.42.3",
"eslint": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
Expand Down
10 changes: 0 additions & 10 deletions tooling/eslint/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
* we "need" to type some of the plugins manually :(
*/

declare module "@eslint/js" {
// Why the hell doesn't eslint themselves export their types?
import type { Linter } from "eslint";

export const configs: {
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
readonly all: { readonly rules: Readonly<Linter.RulesRecord> };
};
}

declare module "eslint-plugin-import" {
import type { Linter, Rule } from "eslint";

Expand Down

0 comments on commit e13e3c7

Please sign in to comment.