Run eslint on js,jsx files

This commit is contained in:
David Edmondson
2021-09-04 14:56:54 -07:00
parent 1e42f73e2a
commit a63178f30c
3 changed files with 220 additions and 655 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -483,7 +483,7 @@ class SemVer {
// Numberify any prerelease numeric ids
if (matches[4]) {
this.prerelease = matches[4].split(".").map((id) => {
if (/^[0-9]+$/.test(id)) {
if ((/^[0-9]+$/).test(id)) {
const num = Number(id);
if (num >= 0 && num < MAX_SAFE_INTEGER) {
return num;