diff --git a/scripts/typegen.ts b/scripts/typegen.ts index 9afb4fd46c..92040fbcfa 100644 --- a/scripts/typegen.ts +++ b/scripts/typegen.ts @@ -1,7 +1,7 @@ import fs from 'node:fs/promises' -import JS from '@eslint/js' import { flatConfigsToRulesDTS } from 'eslint-typegen/core' +import { builtinRules } from 'eslint/use-at-your-own-risk' 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' @@ -9,7 +9,7 @@ const configs = await combine( { plugins: { '': { - rules: JS.configs.all, + rules: Object.fromEntries(builtinRules.entries()), }, }, },