Skip to content

Commit

Permalink
Disable no-useless-undefined rule in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Jan 29, 2021
1 parent 4e33ff4 commit e88dc8c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.6.2 (January 29, 2021)

- Disable `no-useless-undefined` rule in tests
- Disable `unicorn/prefer-set-has` rule
- Disable `unicorn/prefer-trim-start-end` rule

## 0.6.1 (November 22, 2020)

- Disable `no-null` rule in base config
Expand Down
6 changes: 0 additions & 6 deletions config-base-next.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,5 @@ module.exports = {
'unicorn/no-null': 'warn',
},
},
{
files: ['**/test/**/*'],
rules: {
'unicorn/no-null': 'off',
},
},
],
};
4 changes: 4 additions & 0 deletions config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'unicorn/no-null': 'off',
'unicorn/no-useless-undefined': 'off',
},
},
],
Expand Down Expand Up @@ -112,7 +113,10 @@ module.exports = {
'unicorn/no-process-exit': 'off',
'unicorn/no-reduce': 'warn',
'unicorn/prefer-optional-catch-binding': 'warn',
'unicorn/prefer-set-has': 'off',
'unicorn/prefer-ternary': 'off',
// this rule requires a TypeScript lib target of es2019 or later
'unicorn/prefer-trim-start-end': 'off',
'unicorn/prevent-abbreviations': 'off',

'import/no-restricted-paths': ['error', { zones: [{ target: './src', from: './test' }] }],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-neo",
"version": "0.6.1",
"version": "0.6.2",
"description": "Official Neo Financial ESLint configuration",
"main": "index.js",
"author": "Neo Financial Engineering <engineering@neofinancial.com>",
Expand Down

0 comments on commit e88dc8c

Please sign in to comment.