Skip to content

Commit 28023b1

Browse files
committed
feat(packages/sui-lint): adapt typescript eslint rules
1 parent c0ab2d7 commit 28023b1

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

packages/sui-lint/eslintrc.ts.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,24 @@ module.exports = {
230230
'@typescript-eslint/explicit-function-return-type': [RULES.OFF, {allowTypedFunctionExpressions: false}],
231231
'chai-friendly/no-unused-expressions': RULES.ERROR,
232232
'@typescript-eslint/no-unused-expressions': RULES.OFF,
233-
'@typescript-eslint/return-await': RULES.OFF
233+
'@typescript-eslint/return-await': RULES.OFF,
234+
'@typescript-eslint/strict-boolean-expressions': [
235+
'error',
236+
{
237+
allowString: true,
238+
allowNumber: true,
239+
allowNullableObject: true,
240+
allowNullableBoolean: true,
241+
allowNullableString: true,
242+
allowNullableNumber: true,
243+
allowAny: true
244+
}
245+
],
246+
'@typescript-eslint/prefer-nullish-coalescing': RULES.OFF,
247+
'@typescript-eslint/no-non-null-assertion': RULES.WARNING,
248+
'@typescript-eslint/no-floating-promises': RULES.ERROR,
249+
'@typescript-eslint/no-dynamic-delete': RULES.OFF,
250+
'@typescript-eslint/consistent-type-assertions': RULES.OFF
234251
}
235252
},
236253
{

0 commit comments

Comments
 (0)