Skip to content

Commit

Permalink
fix(eslint-config): disable unicorn/prefer-ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Mar 30, 2023
1 parent c4f4eff commit 5a0739d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-config/bases/base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ const baseConfig = [
'unicorn/prefer-spread': 'off',
// it is cleaner than `.replace(//g)`
'unicorn/prefer-string-replace-all': 'error',
// sometimes it is less readable using ternary expressions
'unicorn/prefer-ternary': 'off',
// webpack support on `top level await` is still experimental, and some legacy projects still use commonjs
'unicorn/prefer-top-level-await': 'off',
// use with `unicorn/new-for-builtins`
Expand Down

0 comments on commit 5a0739d

Please sign in to comment.