Skip to content

Commit 76b9f33

Browse files
authored
Ban null again (#1254)
1 parent 7983eb3 commit 76b9f33

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ module.exports = {
7070
'@typescript-eslint/no-explicit-any': 'off',
7171
// TODO rennable this rule (by removing this off)
7272
'@typescript-eslint/explicit-function-return-type': 'off',
73-
// TODO rennable this rule (by removing this off)
74-
'no-null/no-null': 'off',
7573
// TODO reenable this rule, tests mostly break this one (by changing off to error)
74+
// This currently produces 700 non fixable by --fix errors
7675
'sort-imports': 'off',
76+
'no-null/no-null': 'error',
7777
'@typescript-eslint/no-empty-function': 'off',
7878
'@typescript-eslint/no-unused-vars': 'off',
7979
// Do not check loops so while(true) works. Potentially reevalute this.

src/test/shared/clients/fakeFileStreams.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export class FakeFileStreams implements FileStreams {
3333
objectMode: true,
3434
read() {
3535
this.push(readData)
36+
// MUST be null or else it will not stop reading
37+
// eslint-disable-next-line no-null/no-null
3638
this.push(null)
3739
},
3840
})
@@ -64,6 +66,8 @@ export class FakeFileStreams implements FileStreams {
6466
objectMode: true,
6567
read() {
6668
this.push(data)
69+
// MUST be null or else it will not stop reading
70+
// eslint-disable-next-line no-null/no-null
6771
this.push(null)
6872
},
6973
})

0 commit comments

Comments
 (0)