Skip to content

Commit

Permalink
fix(eslint): disable typescript prefer-nullish-coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
codybrouwers committed Sep 22, 2022
1 parent dc6eaf4 commit 0b2dcea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eslint/rules/typescript/strict.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
rules: {
/**
* Enforce using the nullish coalescing operator instead of logical chaining.
*
* 🔧 Fixable - https://typescript-eslint.io/rules/prefer-nullish-coalescing
*/
'@typescript-eslint/prefer-nullish-coalescing': 'off',
},
};
1 change: 1 addition & 0 deletions eslint/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
require.resolve('./rules/typescript'),
require.resolve('./rules/typescript/extension'),
require.resolve('./rules/typescript/import'),
require.resolve('./rules/typescript/strict'),
require.resolve('./rules/tsdoc'),
],
},
Expand Down

0 comments on commit 0b2dcea

Please sign in to comment.