Skip to content

Commit 453d503

Browse files
committed
fix: remove @types/eslint-plugin-mocha and fix it for v11
ref: lo1tuma/eslint-plugin-mocha#375
1 parent 002f7bb commit 453d503

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

packages/eslint-config/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
},
4949
"devDependencies": {
5050
"@eslint/config-inspector": "^1.0.2",
51-
"@types/eslint-plugin-mocha": "^10.4.0",
5251
"eslint-typegen": "^2.1.0",
5352
"importx": "^0.5.2"
5453
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import type { Linter } from "eslint";
2+
// @ts-expect-error version 11.0.0 of eslint-plugin-mocha has no types
3+
// https://github.com/lo1tuma/eslint-plugin-mocha/issues/375
24
import mochaPlugin from "eslint-plugin-mocha";
35
import { GLOB_TEST } from "../globs.js";
46

57
export const mocha: Linter.Config[] = [
68
{
79
files: [GLOB_TEST],
8-
...mochaPlugin.configs.flat.recommended,
10+
...mochaPlugin.configs.recommended,
911
},
1012
];

packages/eslint-config/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"esModuleInterop": true,
1010
"skipLibCheck": true
1111
},
12-
"include": ["src", "*.ts"]
12+
"include": ["src"]
1313
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)