Skip to content

Commit 0b0beec

Browse files
committed
Updated RuleTester to cover v9 and other versions/parsers.
1 parent 24ea3a6 commit 0b0beec

11 files changed

+409
-115
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prepare": "husky install",
2222
"prepublishOnly": "pnpm build && pnpm lint && prettier --check src && pnpm test:all",
2323
"build": "tsc -p tsconfig.build.json && pnpm run docs",
24-
"lint": "eslint --ignore-pattern test/fixture/invalid .",
24+
"lint": "eslint --ext .js,.jsx,.ts,.tsx --ignore-pattern test/fixture/invalid .",
2525
"docs": "PARSER=none ts-node --transpile-only scripts/docs.ts",
2626
"test": "jest",
2727
"test:ts": "PARSER=ts pnpm test",
@@ -48,7 +48,9 @@
4848
"@babel/core": "^7.24.4",
4949
"@babel/eslint-parser": "^7.24.1",
5050
"@tsconfig/node20": "^20.1.4",
51-
"@types/eslint": "^8.56.7",
51+
"@types/eslint-v6": "npm:@types/eslint@6",
52+
"@types/eslint-v7": "npm:@types/eslint@7",
53+
"@types/eslint-v8": "npm:@types/eslint@8",
5254
"@types/estraverse": "^5.1.7",
5355
"@types/is-html": "^2.0.2",
5456
"@types/jest": "^29.5.12",
@@ -61,17 +63,18 @@
6163
"eslint-plugin-eslint-plugin": "^5.5.0",
6264
"eslint-plugin-import": "^2.29.1",
6365
"eslint-plugin-solid": "link:",
64-
"eslint-v6": "npm:eslint@^6.8.0",
65-
"eslint-v7": "npm:eslint@^7.32.0",
66-
"eslint-v8": "npm:eslint@^8.57.0",
66+
"eslint-v6": "npm:eslint@6",
67+
"eslint-v7": "npm:eslint@7",
68+
"eslint-v8": "npm:eslint@8",
6769
"husky": "^8.0.3",
6870
"jest": "^29.7.0",
6971
"lint-staged": "^13.3.0",
7072
"markdown-magic": "^2.6.1",
7173
"prettier": "^2.8.8",
7274
"ts-jest": "^29.1.2",
7375
"ts-node": "^10.9.2",
74-
"typescript": "^5.4.3"
76+
"typescript": "^5.4.3",
77+
"typescript-eslint": "^7.7.1"
7578
},
7679
"peerDependencies": {
7780
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"

0 commit comments

Comments
 (0)