Skip to content

Commit d9b10e1

Browse files
committedNov 28, 2024
fix: recover typegen for builtin rules, close #639
1 parent f0eecc5 commit d9b10e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎scripts/typegen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import fs from 'node:fs/promises'
22

3-
import JS from '@eslint/js'
43
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
4+
import { builtinRules } from 'eslint/use-at-your-own-risk'
55

66
import { astro, combine, comments, formatters, imports, javascript, jsdoc, jsonc, jsx, markdown, node, perfectionist, react, regexp, solid, sortPackageJson, stylistic, svelte, test, toml, typescript, unicorn, unocss, vue, yaml } from '../src'
77

88
const configs = await combine(
99
{
1010
plugins: {
1111
'': {
12-
rules: JS.configs.all,
12+
rules: Object.fromEntries(builtinRules.entries()),
1313
},
1414
},
1515
},

0 commit comments

Comments
 (0)
Please sign in to comment.