Enable use-isnan lint

This commit is contained in:
valadaptive 2023-12-02 09:19:35 -05:00
parent 9204a31d32
commit 1c121f1ba5
2 changed files with 1 additions and 2 deletions

View File

@ -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}]
}
};

View File

@ -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"]`)