diff --git a/playground/eslint.config.mjs b/playground/eslint.config.mjs index 39178b9aa..05a5d5dad 100644 --- a/playground/eslint.config.mjs +++ b/playground/eslint.config.mjs @@ -8,7 +8,7 @@ export default ts.config( eslint.configs.recommended, ...ts.configs.recommendedTypeChecked, { - files: ['index.ts', 'test.ts', 'lib.d.ts'], + files: ['*.ts'], languageOptions: { parserOptions: { project: 'tsconfig.json', @@ -41,7 +41,7 @@ export default ts.config( }, }, { - files: ['eslint.config.mjs', 'eslint.d.ts'], + files: ['eslint.config.mjs'], languageOptions: { parserOptions: { project: 'tsconfig.eslint.json', diff --git a/playground/eslint.d.ts b/playground/eslint.d.ts deleted file mode 100644 index 4957c0fb3..000000000 --- a/playground/eslint.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -declare module 'eslint-plugin-mocha' { - import type { ESLint, Linter } from 'eslint'; - - interface Configs { - configs: { - recommended: Linter.Config; - all: Linter.Config; - flat: { - 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 04f416220..271a4aedd 100644 --- a/playground/package.json +++ b/playground/package.json @@ -33,8 +33,8 @@ "devDependencies": { "@peculiar/webcrypto": "^1.4.5", "@types/codemirror": "^5.60.15", - "@types/eslint": "^8.56.5", "@types/eslint__js": "^8.42.3", + "@types/eslint-plugin-mocha": "^10.4.0", "@types/node": "^20.11.24", "@types/pako": "^2.0.3", "eslint": "^8.57.0", diff --git a/playground/tsconfig.eslint.json b/playground/tsconfig.eslint.json index 74c9a779e..a8cd64c8a 100644 --- a/playground/tsconfig.eslint.json +++ b/playground/tsconfig.eslint.json @@ -5,7 +5,6 @@ "moduleResolution": "nodenext" }, "files": [ - "eslint.config.mjs", - "eslint.d.ts" + "eslint.config.mjs" ] }