Skip to content

Commit

Permalink
Disable the no-void rule (#1)
Browse files Browse the repository at this point in the history
The motivation behind this is explained in the comment.
  • Loading branch information
jstasiak authored Feb 8, 2024
1 parent 95af7a5 commit 24ed51e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ module.exports = {
// https://github.com/typescript-eslint/typescript-eslint/blob/6fd476c32c4757cb9f4c442f0cd92875671eed30/packages/eslint-plugin/docs/rules/no-redeclare.md
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],

// eslint-config-standard enables this rule but being able to discard values
// with void seems desirable. Let's disable it until we drop eslint-config-standard
// dependency (which I'd like to do ASAP, it pulls eslint-plugin-import and so many
// transitive dependencies that we don't even use.
'no-void': 'off',
},
}

0 comments on commit 24ed51e

Please sign in to comment.