Enforce strict equals
This commit is contained in:
parent
8590f80c31
commit
150d37868a
@ -23,6 +23,7 @@ rules:
|
|||||||
no-dupe-class-members: off
|
no-dupe-class-members: off
|
||||||
"@typescript-eslint/no-use-before-define": off
|
"@typescript-eslint/no-use-before-define": off
|
||||||
"@typescript-eslint/no-non-null-assertion": off
|
"@typescript-eslint/no-non-null-assertion": off
|
||||||
|
eqeqeq: error
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
# Does not work with CommonJS unfortunately.
|
# Does not work with CommonJS unfortunately.
|
||||||
|
@ -172,7 +172,7 @@ export const parse = (
|
|||||||
const arg = argv[i]
|
const arg = argv[i]
|
||||||
|
|
||||||
// -- signals the end of option parsing.
|
// -- signals the end of option parsing.
|
||||||
if (!ended && arg == "--") {
|
if (!ended && arg === "--") {
|
||||||
ended = true
|
ended = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -220,7 +220,7 @@ export const parse = (
|
|||||||
throw error(`--${key} requires a value`)
|
throw error(`--${key} requires a value`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option.type == OptionalString && value == "false") {
|
if (option.type === OptionalString && value === "false") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user