Skip to content

Commit 387df5c

Browse files
committed
fix: disable some unicron rules
1 parent 4c8b571 commit 387df5c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/configs/unicorn.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
1414
'unicorn/custom-error-definition': 'error',
1515
'unicorn/error-message': 'error',
1616
'unicorn/escape-case': 'error',
17-
'unicorn/explicit-length-check': 'error',
17+
// 'unicorn/explicit-length-check': 'error',
1818
// 'unicorn/filename-case': [
1919
// 'error',
2020
// {
@@ -23,7 +23,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
2323
// },
2424
// ],
2525
'unicorn/new-for-builtins': 'error',
26-
'unicorn/no-array-callback-reference': 'error',
26+
// 'unicorn/no-array-callback-reference': 'error',
2727
'unicorn/no-array-method-this-argument': 'error',
2828
'unicorn/no-array-push-push': 'error',
2929
'unicorn/no-await-in-promise-methods': 'error',
@@ -68,7 +68,8 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
6868
'unicorn/prefer-string-slice': 'error',
6969
'unicorn/prefer-string-starts-ends-with': 'error',
7070
'unicorn/prefer-string-trim-start-end': 'error',
71-
'unicorn/prefer-top-level-await': 'error',
71+
// top level await is not supported in all environments
72+
// 'unicorn/prefer-top-level-await': 'error',
7273
'unicorn/prefer-type-error': 'error',
7374
'unicorn/throw-new-error': 'error',
7475
},

0 commit comments

Comments
 (0)