From d9b10e12092c3ad5868d9f97d7a858d7ae16108a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 28 Nov 2024 10:51:22 +0800 Subject: [PATCH] fix: recover typegen for builtin rules, close #639 --- scripts/typegen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()), }, }, },