Skip to content

Commit f80dc2b

Browse files
committed
chore: fix lint error
1 parent ba47329 commit f80dc2b

File tree

11 files changed

+24
-27
lines changed

11 files changed

+24
-27
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"build": "nr build:typegen && tsup",
4040
"dev": "npx @eslint/config-inspector",
4141
"lint": "eslint --flag unstable_ts_config .",
42-
"lint:fix": "eslint . --fix",
42+
"lint:fix": "eslint --flag unstable_ts_config . --fix",
4343
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
4444
"build:typegen": "tsx scripts/typegen.ts",
4545
"prepack": "nr build",

scripts/typegen.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writeFile } from 'node:fs/promises'
2-
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
32
import { builtinRules } from 'eslint/use-at-your-own-risk'
3+
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
44
import picocolors from 'picocolors'
55
import {
66
command,
@@ -60,7 +60,6 @@ const configs = await combine(
6060

6161
const configNames = configs.map(i => i.name).filter(Boolean) as string[]
6262

63-
// @ts-expect-error eslint typegen version
6463
let dts = await flatConfigsToRulesDTS(configs, {
6564
includeAugmentation: false,
6665
})

src/configs/formatter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import {
1010
GLOB_YAML,
1111
} from '../constants/glob'
1212
import { ensurePackages, interopDefault, parserPlain } from '../shared'
13+
import { StylisticConfigDefaults } from './stylistic'
1314
import type {
1415
OptionsFormatters,
1516
PartialPrettierExtendedOptions,
1617
PrettierParser,
1718
StylisticConfig,
1819
TypedFlatConfigItem,
1920
} from '../types'
20-
import { StylisticConfigDefaults } from './stylistic'
2121

2222
export async function formatter(
2323
options: OptionsFormatters | true = {},

src/configs/imports.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { GLOB_SRC_EXT } from '../constants/glob'
21
import { pluginAntfu, pluginImport } from '../plugins'
32
import type { OptionsStylistic, TypedFlatConfigItem } from '../types'
43

src/configs/index.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
export * from './command'
12
export * from './comments'
3+
export * from './disables'
4+
export * from './formatter'
25
export * from './ignores'
36
export * from './imports'
47
export * from './javascript'
58
export * from './jsdoc'
69
export * from './jsonc'
10+
export * from './jsx'
711
export * from './node'
12+
export * from './perfectionist'
13+
export * from './react'
14+
export * from './regexp'
815
export * from './sort'
916
export * from './stylistic'
17+
export * from './svelte'
18+
export * from './tailwindcss'
19+
export * from './test'
1020
export * from './typescript'
1121
export * from './unicorn'
12-
export * from './vue'
13-
export * from './test'
14-
export * from './perfectionist'
15-
export * from './react'
1622
export * from './unocss'
17-
export * from './formatter'
18-
export * from './svelte'
19-
export * from './tailwindcss'
20-
export * from './command'
21-
export * from './regexp'
22-
export * from './jsx'
23-
export * from './disables'
23+
export * from './vue'

src/configs/javascript.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import globals from 'globals'
2-
import { GLOB_SRC, GLOB_SRC_EXT } from '../constants/glob'
32
import { pluginUnusedImports } from '../plugins'
43
import type {
54
OptionsIsInEditor,

src/configs/typescript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import process from 'node:process'
2-
import { GLOB_ASTRO_TS, GLOB_DTS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from '../constants/glob'
2+
import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from '../constants/glob'
33
import { pluginAntfu } from '../plugins'
44
import { interopDefault, renameRules } from '../shared'
55
import type {

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import type { Linter } from 'eslint'
12
import {
23
command,
34
comments,
5+
disables,
46
formatter,
57
ignores,
68
imports,
@@ -21,7 +23,6 @@ import {
2123
typescript,
2224
unicorn,
2325
unocss,
24-
disables,
2526
vue,
2627
} from './configs'
2728
import {
@@ -37,7 +38,6 @@ import {
3738
resolveSubOptions,
3839
} from './shared'
3940
import type { Awaitable, OptionsConfig, TypedFlatConfigItem } from './types'
40-
import type { Linter } from 'eslint'
4141

4242
const flatConfigProps = [
4343
'name',

src/plugins/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// eslint-disable-next-line ts/ban-ts-comment
22
// @ts-nocheck
33

4-
export { default as pluginAntfu } from 'eslint-plugin-antfu'
54
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments'
5+
export { default as pluginAntfu } from 'eslint-plugin-antfu'
66
export * as pluginImport from 'eslint-plugin-import-x'
77
export { default as pluginNode } from 'eslint-plugin-n'
8+
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist'
89
export { default as pluginUnicorn } from 'eslint-plugin-unicorn'
910
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports'
10-
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist'

src/types/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type {
2-
PartialPrettierExtendedOptions,
3-
TypedFlatConfigItem,
4-
} from './rule'
51
import type { StylisticCustomizeOptions } from '@stylistic/eslint-plugin'
62
import type { ParserOptions } from '@typescript-eslint/parser'
73
import type { FlatGitignoreOptions } from 'eslint-config-flat-gitignore'
84
import type { Options as VueBlocksOptions } from 'eslint-processor-vue-blocks'
5+
import type {
6+
PartialPrettierExtendedOptions,
7+
TypedFlatConfigItem,
8+
} from './rule'
99

1010
export * from './rule'
1111

src/types/rule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ConfigNames, RuleOptions } from './typegen'
21
import type { Linter } from 'eslint'
2+
import type { ConfigNames, RuleOptions } from './typegen'
33

44
export type Rules = RuleOptions
55

0 commit comments

Comments
 (0)