Skip to content

Commit 150d378

Browse files
committed
Enforce strict equals
1 parent 8590f80 commit 150d378

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rules:
2323
no-dupe-class-members: off
2424
"@typescript-eslint/no-use-before-define": off
2525
"@typescript-eslint/no-non-null-assertion": off
26+
eqeqeq: error
2627

2728
settings:
2829
# Does not work with CommonJS unfortunately.

src/node/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const parse = (
172172
const arg = argv[i]
173173

174174
// -- signals the end of option parsing.
175-
if (!ended && arg == "--") {
175+
if (!ended && arg === "--") {
176176
ended = true
177177
continue
178178
}
@@ -220,7 +220,7 @@ export const parse = (
220220
throw error(`--${key} requires a value`)
221221
}
222222

223-
if (option.type == OptionalString && value == "false") {
223+
if (option.type === OptionalString && value === "false") {
224224
continue
225225
}
226226

0 commit comments

Comments
 (0)