Skip to content

Commit

Permalink
improve typings for eslint-plugin-mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 8, 2024
1 parent 52fa100 commit cd128f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions playground/eslint.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
declare module 'eslint-plugin-mocha' {
export default {
import type { ESLint, Linter } from 'eslint';

interface Configs {
configs: {
recommended: Linter.Config;
all: Linter.Config;
flat: {
all: unknown,
recommended: unknown,
},
},
};
recommended: Linter.FlatConfig;
all: Linter.FlatConfig;
};
};
}

const plugin: Configs & ESLint.Plugin;
export default plugin;
}
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"@peculiar/webcrypto": "^1.4.5",
"@types/codemirror": "^5.60.15",
"@types/eslint": "^8.56.5",
"@types/eslint__js": "^8.42.3",
"@types/node": "^20.11.24",
"@types/pako": "^2.0.3",
Expand Down

0 comments on commit cd128f1

Please sign in to comment.