Skip to content

Commit

Permalink
fix(preset-esm): allow short circuit and ternary operations
Browse files Browse the repository at this point in the history
  • Loading branch information
alvis committed Jan 3, 2024
1 parent 7610425 commit 463ae6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/preset-strict/templates/eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ rules:
default-case: error # ensure a default case in any switch

# Code Quality
'@typescript-eslint/no-unused-expressions': warn # unused expressions must be at least commented
'@typescript-eslint/no-unused-expressions': # unused expressions must be at least commented
- warn
- allowShortCircuit: true
allowTernary: true
'@typescript-eslint/prefer-function-type': warn # make a function a function instead of an interface
'@typescript-eslint/unified-signatures': warn # simplify an overloading signature
no-secrets/no-secrets: error # no sensitive information
Expand Down

0 comments on commit 463ae6f

Please sign in to comment.