diff --git a/playground/eslint.d.ts b/playground/eslint.d.ts index 6ce6ebf2a..4957c0fb3 100644 --- a/playground/eslint.d.ts +++ b/playground/eslint.d.ts @@ -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; } diff --git a/playground/package.json b/playground/package.json index 0558fe892..04f416220 100644 --- a/playground/package.json +++ b/playground/package.json @@ -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",