Enable use-isnan lint
This commit is contained in:
parent
9204a31d32
commit
1c121f1ba5
|
@ -63,7 +63,6 @@ module.exports = {
|
|||
'no-extra-boolean-cast': 'off',
|
||||
'require-yield': 'off',
|
||||
'no-case-declarations': 'off',
|
||||
'use-isnan': 'off',
|
||||
'no-constant-condition': ['error', {checkLoops: false}]
|
||||
}
|
||||
};
|
||||
|
|
|
@ -178,7 +178,7 @@ async function onRegexEditorOpenClick(existingId) {
|
|||
.filter(":checked")
|
||||
.map(function () { return parseInt($(this).val()) })
|
||||
.get()
|
||||
.filter((e) => e !== NaN) || [],
|
||||
.filter((e) => !isNaN(e)) || [],
|
||||
disabled:
|
||||
editorHtml
|
||||
.find(`input[name="disabled"]`)
|
||||
|
|
Loading…
Reference in New Issue