Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sxzz/eslint-config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.0.0
Choose a base ref
...
head repository: sxzz/eslint-config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 9, 2025

  1. fix: config types

    sxzz committed Mar 9, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c025651 View commit details
  2. chore: release v6.0.1

    sxzz committed Mar 9, 2025
    Copy the full SHA
    aed15ed View commit details
Showing with 11 additions and 10 deletions.
  1. +1 −1 package.json
  2. +7 −9 scripts/typegen.ts
  3. +3 −0 src/presets.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sxzz/eslint-config",
"version": "6.0.0",
"version": "6.0.1",
"packageManager": "pnpm@10.6.1",
"description": "ESLint config for @sxzz.",
"type": "module",
16 changes: 7 additions & 9 deletions scripts/typegen.ts
Original file line number Diff line number Diff line change
@@ -2,16 +2,14 @@ import { writeFile } from 'node:fs/promises'
import { green } from 'ansis'
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
import { builtinRules } from 'eslint/use-at-your-own-risk'
import { sxzz } from '../src/presets'
import { presetAll } from '../src/presets'

const configs = await sxzz(
[
{
plugins: { '': { rules: Object.fromEntries(builtinRules) } },
},
],
{ vue: true, unocss: true, pnpm: true },
)
const configs = [
...(await presetAll()),
{
plugins: { '': { rules: Object.fromEntries(builtinRules) } },
},
]
let dts = await flatConfigsToRulesDTS(configs, {
includeAugmentation: false,
exportTypeName: 'Rules',
3 changes: 3 additions & 0 deletions src/presets.ts
Original file line number Diff line number Diff line change
@@ -78,6 +78,9 @@ export const presetAll = async (): Promise<Config[]> => [
...vue(),
...(await unocss()),
...prettier(),
...command(),
...(await pnpm()),
...specialCases(),
]

export interface Options {