Skip to content

Commit

Permalink
fix(eslint-config): fix dts
Browse files Browse the repository at this point in the history
  • Loading branch information
ddosakura committed Sep 14, 2024
1 parent 4a11e9e commit 2d1c32b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-apes-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ddosakura/eslint-config": patch
---

fix dts
4 changes: 2 additions & 2 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sakuramo from './src'
import sakura from './src'

export default sakuramo({
export default sakura({
typescript: {
tsconfigPath: 'tsconfig.json',
},
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ type AntFuParameters = Parameters<typeof antfu>
type Options = AntFuParameters[0]
export type UserConfig = AntFuParameters[1]

type AntFuReturnType = ReturnType<typeof antfu>

export type { TypedFlatConfigItem }

export { builtinCommands }
Expand Down Expand Up @@ -53,7 +55,7 @@ const stylisticRules: UserConfig = {
export function sakura(
{ commands: userCommands, ...options }: Partial<SakuraOptions> = {},
...userConfigs: UserConfig[]
) {
): AntFuReturnType {
// const isInEditor = options.isInEditor ?? isInEditorEnv()
let composer = antfu(
options,
Expand Down

0 comments on commit 2d1c32b

Please sign in to comment.