From 3367a21a02e2fb59a79089a9de416b1476ea0522 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 10 Jan 2022 19:24:34 +0200 Subject: [PATCH] feat: Enable a few more newer Node.js rules (#397) * Enable a few more rules * Update .eslintrc.js Co-authored-by: ehmicky --- .eslintrc.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 56a66872..313abd85 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -220,9 +220,6 @@ module.exports = { // The `sortCharacterClasses` option is not very useful 'unicorn/better-regex': [2, { sortCharacterClasses: false }], - // TODO: enable once https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1343 is fixed - 'unicorn/prefer-prototype-methods': 0, - // Too strict 'unicorn/no-null': 0, 'unicorn/no-array-reduce': 0, @@ -243,13 +240,6 @@ module.exports = { // TODO: enable those rules 'unicorn/no-process-exit': 0, 'unicorn/import-style': 0, - // TODO: enable after dropping Node 8 support - 'unicorn/prefer-optional-catch-binding': 0, - 'unicorn/prefer-string-trim-start-end': 0, - // TODO: enable after dropping Node <12 support - 'unicorn/numeric-separators-style': 0, - 'unicorn/prefer-array-flat': 0, - 'unicorn/prefer-array-flat-map': 0, }, overrides: [ {