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

@ -126,7 +126,7 @@
"build:dev": "webpack --mode development",
"build:test": "webpack --config webpack.config-test.js",
"lint": "npm run lint:jsts & npm run lint:style",
"lint:jsts": "eslint --fix . --ext ts,tsx",
"lint:jsts": "eslint --fix . --ext js,jsx,ts,tsx",
"lint:style": "stylelint --fix ./css/*",
"preinstall": "node ./scripts/engines-check.js",
"test": "jest",

File diff suppressed because it is too large Load Diff

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