Skip to content

Commit

Permalink
fix: disable unicorn/consistent-function-scoping for arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 5, 2024
1 parent 715479d commit 362ab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configs/unicorn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function unicorn(options: OptionsUnicorn = {}): Promise<TypedFlatCo
? pluginUnicorn.configs['flat/recommended'].rules
: {
'unicorn/consistent-empty-array-spread': 'error',
'unicorn/consistent-function-scoping': 'error',
'unicorn/consistent-function-scoping': ['error', { checkArrowFunctions: false }],
'unicorn/error-message': 'error',
'unicorn/escape-case': 'error',
'unicorn/new-for-builtins': 'error',
Expand Down

0 comments on commit 362ab81

Please sign in to comment.