Archived
1
0

Enforce strict equals

This commit is contained in:
Asher 2020-08-04 15:08:45 -05:00
parent 8590f80c31
commit 150d37868a
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ rules:
no-dupe-class-members: off
"@typescript-eslint/no-use-before-define": off
"@typescript-eslint/no-non-null-assertion": off
eqeqeq: error
settings:
# Does not work with CommonJS unfortunately.

View File

@ -172,7 +172,7 @@ export const parse = (
const arg = argv[i]
// -- signals the end of option parsing.
if (!ended && arg == "--") {
if (!ended && arg === "--") {
ended = true
continue
}
@ -220,7 +220,7 @@ export const parse = (
throw error(`--${key} requires a value`)
}
if (option.type == OptionalString && value == "false") {
if (option.type === OptionalString && value === "false") {
continue
}