Skip to content

Commit fee001d

Browse files
committed
feat(unicorn): enable promise lint
1 parent 04ba04d commit fee001d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/configs/unicorn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
2626
'unicorn/no-array-callback-reference': 'error',
2727
'unicorn/no-array-method-this-argument': 'error',
2828
'unicorn/no-array-push-push': 'error',
29+
'unicorn/no-await-in-promise-methods': 'error',
2930
'unicorn/no-console-spaces': 'error',
3031
'unicorn/no-for-loop': 'error',
3132
'unicorn/no-hex-escape': 'error',
@@ -34,6 +35,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
3435
'unicorn/no-lonely-if': 'error',
3536
'unicorn/no-new-array': 'error',
3637
'unicorn/no-new-buffer': 'error',
38+
'unicorn/no-single-promise-in-promise-methods': 'error',
3739
'unicorn/no-static-only-class': 'error',
3840
'unicorn/no-unnecessary-await': 'error',
3941
'unicorn/no-zero-fractions': `error`,

0 commit comments

Comments
 (0)