mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-13 18:50:39 +01:00
Enable use-isnan lint
This commit is contained in:
parent
9204a31d32
commit
1c121f1ba5
@ -63,7 +63,6 @@ module.exports = {
|
|||||||
'no-extra-boolean-cast': 'off',
|
'no-extra-boolean-cast': 'off',
|
||||||
'require-yield': 'off',
|
'require-yield': 'off',
|
||||||
'no-case-declarations': 'off',
|
'no-case-declarations': 'off',
|
||||||
'use-isnan': 'off',
|
|
||||||
'no-constant-condition': ['error', {checkLoops: false}]
|
'no-constant-condition': ['error', {checkLoops: false}]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -178,7 +178,7 @@ async function onRegexEditorOpenClick(existingId) {
|
|||||||
.filter(":checked")
|
.filter(":checked")
|
||||||
.map(function () { return parseInt($(this).val()) })
|
.map(function () { return parseInt($(this).val()) })
|
||||||
.get()
|
.get()
|
||||||
.filter((e) => e !== NaN) || [],
|
.filter((e) => !isNaN(e)) || [],
|
||||||
disabled:
|
disabled:
|
||||||
editorHtml
|
editorHtml
|
||||||
.find(`input[name="disabled"]`)
|
.find(`input[name="disabled"]`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user