Skip to content

Commit

Permalink
prefer-nullish-coalescing: warn, ignore strings (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz authored Sep 5, 2023
1 parent 280c396 commit cdbad17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-ladybugs-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@awesome-code-style/eslint-config': patch
---

Set @typescript-eslint/prefer-nullish-coalescing to warn, ignore strings
1 change: 1 addition & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
'@typescript-eslint/non-nullable-type-assertion-style': 'warn',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'warn',
'@typescript-eslint/prefer-nullish-coalescing': ['warn', { ignorePrimitives: { string: true } }],
'@typescript-eslint/prefer-readonly': 'warn',
'@typescript-eslint/prefer-reduce-type-parameter': 'warn',
'@typescript-eslint/prefer-string-starts-ends-with': 'warn',
Expand Down

0 comments on commit cdbad17

Please sign in to comment.