Skip to content

Commit

Permalink
feat: Enable a few more newer Node.js rules (#397)
Browse files Browse the repository at this point in the history
* Enable a few more rules

* Update .eslintrc.js

Co-authored-by: ehmicky <ehmicky@users.noreply.github.com>
  • Loading branch information
XhmikosR and ehmicky authored Jan 10, 2022
1 parent f9908d7 commit 3367a21
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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: [
{
Expand Down

0 comments on commit 3367a21

Please sign in to comment.