Skip to content

Commit

Permalink
Remove useless overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Sep 25, 2024
1 parent e7b8037 commit c827e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,5 @@ module.exports = {
parserOptions: {
project: ['./tsconfig.json', './packages/*/tsconfig.json'],
},
rules: {
'@typescript-eslint/prefer-destructuring': 'off', // The commons universal ESLint configuration already uses "prefer-destructuring" and this extended version is not needed.
'@typescript-eslint/max-params': 'off', // It is sometimes necessary to have enough arguments. This rule is too strict.

'@typescript-eslint/prefer-nullish-coalescing': 'off', // This rule throws an error with ESLint plugin and parser @6.19.0.
'@typescript-eslint/consistent-return': 'off', // Triggers multiple false positives, e.g. in exhaustive switch cases or zod transformations.

'jest/prefer-importing-jest-globals': 'off',
},
rules: {},
};
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Object.defineProperty = function (object, name, meta) {
};

// Disable logger if it is not explicitly set to true.
process.env.LOGGER_ENABLED = process.env.LOGGER_ENABLED || 'false';
process.env.LOGGER_ENABLED = process.env.LOGGER_ENABLED ?? 'false';

0 comments on commit c827e11

Please sign in to comment.