Skip to content

Commit 2647596

Browse files
committed
fix: add provide rule types using the low-level API
1 parent 5c69086 commit 2647596

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"version": "npm run generate:version && git add .",
2222
"update": "node ./tools/update.js",
2323
"update-resources": "node ./tools/update-resources.js",
24+
"typegen": "node ./tools/generate-typegen.mjs",
2425
"docs:watch": "vitepress dev docs",
2526
"predocs:build": "npm run update",
2627
"docs:build": "vitepress build docs",

tools/generate-typegen.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import fs from 'node:fs/promises'
2+
import { pluginsToRulesDTS } from 'eslint-typegen/core'
3+
import plugin from '../lib/index.js'
4+
5+
const dts = await pluginsToRulesDTS({
6+
vue: plugin
7+
})
8+
9+
await fs.writeFile('lib/eslint-typegen.d.ts', dts)

0 commit comments

Comments
 (0)