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 @@ -79,7 +79,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",
"globals": "^15.1.0",
"got": "^14.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/language/markdown-source-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { findOffsets } from "../util.js";

const commentParser = new ConfigCommentParser();
const configCommentStart =
/<!--\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|-->)/u;
/<!--\s*eslint(?:-enable|-disable(?:(?:-next)?-line)?)?(?:\s|-->)/u;
const htmlComment = /<!--(.*?)-->/gsu;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function traverse(node, callbacks) {
function getComment(html) {
const commentStart = "<!--";
const commentEnd = "-->";
const regex = /^(eslint\b|global\s)/u;
const regex = /^(?:eslint\b|global\s)/u;

if (
html.slice(0, commentStart.length) !== commentStart ||
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { findOffsets } from "../util.js";
//-----------------------------------------------------------------------------

const htmlTagPattern =
/<([a-z0-9]+(?:-[a-z0-9]+)*)(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?>/giu;
/<([a-z0-9]+(?:-[a-z0-9]+)*)(?:\s(?:[^>"']|"[^"]*"|'[^']*')*)?>/giu;
const lineEndingPattern = /\r\n?|\n/u;

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-missing-label-refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function findMissingReferences(node, nodeText) {
* `right` is the content between the second brackets. It can be empty, and it can be undefined.
*/
const labelPattern =
/(?<!\\)\[(?<left>(?:\\.|[^[\]])*)(?<!\\)\](?<!\\)(?:\[(?<right>(?:\\.|[^\]])*)(?<!\\)\])?/dgu;
/(?<!\\)\[(?<left>(?:\\.|[^[\]])*)(?<!\\)\](?:\[(?<right>(?:\\.|[^\]])*)(?<!\\)\])?/dgu;

let match;

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-missing-link-fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { htmlCommentPattern } from "../util.js";
const githubLineReferencePattern = /^L\d+(?:C\d+)?(?:-L\d+(?:C\d+)?)?$/u;
const customHeadingIdPattern = /\{#(?<id>[^}\s]+)\}\s*$/u;
const htmlIdNamePattern =
/(?<!<)<(?:[^>]+)\s(?:id|name)\s*=\s*["']?(?<id>[^"'\s>]+)["']?/giu;
/(?<!<)<[^>]+\s(?:id|name)\s*=\s*["']?(?<id>[^"'\s>]+)["']?/giu;

//-----------------------------------------------------------------------------
// Rule Definition
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