Skip to content

Commit b91625d

Browse files
Add eslint-plugin-eslint-plugin
1 parent 1bfbab0 commit b91625d

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

package-lock.json

+22-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-plugin-example-typed-linting/eslint.config.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import eslint from '@eslint/js';
2+
import eslintPlugin from 'eslint-plugin-eslint-plugin'
23
import tseslint from 'typescript-eslint';
34

45
export default tseslint.config(
56
{ ignores: ["lib"] },
67
eslint.configs.recommended,
78
...tseslint.configs.recommendedTypeChecked,
9+
eslintPlugin.configs['flat/recommended'],
810
{
911
languageOptions: {
1012
parserOptions: {
1113
projectService: {
1214
allowDefaultProject: ["*.config.*"],
1315
defaultProject: "tsconfig.json"
1416
},
15-
tsconfigRootDir: __dirname,
17+
tsconfigRootDir: import.meta.dirname,
1618
},
1719
},
1820
},

packages/eslint-plugin-example-typed-linting/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
},
55
"devDependencies": {
66
"@eslint/js": "^9.8.0",
7-
"@types/eslint__js": "^8.42.3",
87
"@types/eslint": "^9.6.0",
9-
"@types/node": "^22.0.0",
8+
"@types/eslint__js": "^8.42.3",
9+
"@types/node": "^22.0.2",
1010
"@typescript-eslint/rule-tester": "^8.0.0-alpha.59",
1111
"eslint": "^9.8.0",
1212
"eslint-doc-generator": "^1.7.1",
13-
"typescript-eslint": "^8.0.0-alpha.59",
13+
"eslint-plugin-eslint-plugin": "^6.2.0",
1414
"typescript": "^5.5.4",
15+
"typescript-eslint": "^8.0.0-alpha.59",
1516
"vitest": "^2.0.4"
1617
},
1718
"exports": {

0 commit comments

Comments
 (0)