Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"c8": "^10.1.3",
"dedent": "^1.5.3",
"eslint": "^9.31.0",
"eslint-config-eslint": "^11.0.0",
"eslint-config-eslint": "^12.0.0",
"eslint-plugin-eslint-plugin": "^6.3.2",
"got": "^14.4.2",
"lint-staged": "^15.2.7",
Expand Down
2 changes: 1 addition & 1 deletion src/languages/json-source-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
const commentParser = new ConfigCommentParser();

const INLINE_CONFIG =
/^\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|$)/u;
/^\s*eslint(?:-enable|-disable(?:(?:-next)?-line)?)?(?:\s|$)/u;

/**
* A class to represent a step in the traversal process.
Expand Down
3 changes: 1 addition & 2 deletions src/rules/no-unsafe-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
* We separately capture the integer and fractional parts of a number, so that
* we can check for unsafe numbers that will evaluate to Infinity.
*/
const NUMBER =
/^-?(?<int>0|([1-9][0-9]*))(?:\.(?<frac>[0-9]+))?(?:[eE][+-]?[0-9]+)?$/u;
const NUMBER = /^-?(?<int>0|([1-9]\d*))(?:\.(?<frac>\d+))?(?:e[+-]?\d+)?$/iu;
const NON_ZERO = /[1-9]/u;

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tools/dedupe-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import fs from "node:fs";
//-----------------------------------------------------------------------------

const importRegExp =
/^\s*\*\s*@import\s*\{\s*(?<ids>[^,}]+(?:\s*,\s*[^,}]+)*)\s*\}\s*from\s*"(?<source>[^"]+)"/u;
/^\s*\*\s*@import\s*\{(?<ids>[^,}]+(?:,[^,}]+)*)\}\s*from\s*"(?<source>[^"]+)"/u;

// read files from the command line
const files = process.argv.slice(2);
Expand Down
2 changes: 1 addition & 1 deletion tools/update-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const allSponsors = await fetchSponsorsMarkdown();
const readme = readFileSync(README_FILE_PATH, "utf8");

let newReadme = readme.replace(
/<!--sponsorsstart-->[\w\W]*?<!--sponsorsend-->/u,
/<!--sponsorsstart-->[\s\S]*?<!--sponsorsend-->/u,
`<!--sponsorsstart-->\n\n${allSponsors}\n<!--sponsorsend-->`,
);

Expand Down
Loading