Skip to content

Commit

Permalink
feat: enable unicorn/consistent-function-scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwyd committed Sep 6, 2024
1 parent 84221ae commit 51a1460
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
typescript,
unicorn,
unocss,
disables,
vue,
} from './configs'
import {
Expand Down Expand Up @@ -262,6 +263,8 @@ export async function defineConfig(
)
}

configs.push(disables())

if ('files' in options) {
throw new Error('[@coderwyd/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.')
}
Expand Down

0 comments on commit 51a1460

Please sign in to comment.