diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d5f2d1..426ac4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/config-base-next.js b/config-base-next.js index bf0d0a0..6b0632e 100644 --- a/config-base-next.js +++ b/config-base-next.js @@ -20,11 +20,5 @@ module.exports = { 'unicorn/no-null': 'warn', }, }, - { - files: ['**/test/**/*'], - rules: { - 'unicorn/no-null': 'off', - }, - }, ], }; diff --git a/config-base.js b/config-base.js index 0b6746f..2c2c024 100644 --- a/config-base.js +++ b/config-base.js @@ -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', }, }, ], @@ -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' }] }], diff --git a/package.json b/package.json index 1a044c4..b17b0c7 100644 --- a/package.json +++ b/package.json @@ -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 ",