Skip to content

Commit

Permalink
Ban null again (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterwerlla authored Aug 19, 2020
1 parent 7983eb3 commit 76b9f33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
// TODO rennable this rule (by removing this off)
'@typescript-eslint/explicit-function-return-type': 'off',
// TODO rennable this rule (by removing this off)
'no-null/no-null': 'off',
// TODO reenable this rule, tests mostly break this one (by changing off to error)
// This currently produces 700 non fixable by --fix errors
'sort-imports': 'off',
'no-null/no-null': 'error',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// Do not check loops so while(true) works. Potentially reevalute this.
Expand Down
4 changes: 4 additions & 0 deletions src/test/shared/clients/fakeFileStreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export class FakeFileStreams implements FileStreams {
objectMode: true,
read() {
this.push(readData)
// MUST be null or else it will not stop reading
// eslint-disable-next-line no-null/no-null
this.push(null)
},
})
Expand Down Expand Up @@ -64,6 +66,8 @@ export class FakeFileStreams implements FileStreams {
objectMode: true,
read() {
this.push(data)
// MUST be null or else it will not stop reading
// eslint-disable-next-line no-null/no-null
this.push(null)
},
})
Expand Down

0 comments on commit 76b9f33

Please sign in to comment.