Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit b765cd3

Browse files
authored
Refactoring generation script (#135)
1 parent d436979 commit b765cd3

File tree

14 files changed

+1168
-459
lines changed

14 files changed

+1168
-459
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"check": "tsc",
99
"format": "prettier --write .",
1010
"lint": "eslint .",
11-
"test": "echo \"No tests available\"",
11+
"test": "vitest",
12+
"coverage": "vitest run --coverage",
1213
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run check",
13-
"generate:rules": "esno ./scripts/generate-rule-files.ts",
14-
"generate": "node ./scripts/generate-rule.js"
14+
"generate:rules": "tsx ./scripts/generate-rule-files/cli.ts"
1515
},
1616
"keywords": [
1717
"config",
@@ -50,6 +50,7 @@
5050
],
5151
"devDependencies": {
5252
"@intlify/eslint-plugin-vue-i18n": "~2.0.0",
53+
"@poppinss/cliui": "~3.0.4",
5354
"@types/eslint": "~8.4.6",
5455
"@types/json-schema": "~7.0.11",
5556
"@types/node": "~18.7.23",
@@ -71,13 +72,15 @@
7172
"eslint-plugin-unicorn": "~44.0.0",
7273
"eslint-plugin-vue": "~9.5.1",
7374
"eslint-plugin-vue-pug": "~0.5.4",
74-
"esno": "0.16.3",
7575
"json-schema": "~0.4.0",
7676
"json-schema-to-typescript": "~11.0.2",
7777
"prettier": "2.7.1",
7878
"prettier-plugin-organize-imports": "~3.1.1",
79+
"ts-dedent": "~2.2.0",
80+
"tsx": "~3.9.0",
7981
"typescript": "~4.8.4",
8082
"upper-case-first": "~2.0.2",
83+
"vitest": "~0.23.4",
8184
"vue-eslint-parser": "~9.1.0"
8285
},
8386
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)