Skip to content

Commit 8ba766a

Browse files
authored
refactor: update eslint-config-eslint (#253)
1 parent a3588d8 commit 8ba766a

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/mocha": "^10.0.7",
3838
"c8": "^10.1.3",
3939
"eslint": "^9.27.0",
40-
"eslint-config-eslint": "^11.0.0",
40+
"eslint-config-eslint": "^12.0.0",
4141
"got": "^14.4.1",
4242
"lint-staged": "^15.2.0",
4343
"mocha": "^11.5.0",

packages/compat/src/ignore-file.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function convertIgnorePatternToMinimatch(pattern) {
5656
*/
5757
const escapedPatternWithoutLeadingSlash =
5858
patternWithoutLeadingSlash.replaceAll(
59+
// eslint-disable-next-line regexp/no-empty-lookarounds-assertion -- False positive
5960
/(?=((?:\\.|[^{(])*))\1([{(])/guy,
6061
"$1\\$2",
6162
);

packages/migrate-config/src/migrate-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const { naming } = Legacy;
144144
* @returns {boolean} `true` if the name is a valid identifier.
145145
*/
146146
function isValidIdentifier(name) {
147-
return /^[a-z_$][0-9a-z_$]*$/iu.test(name);
147+
return /^[a-z_$][\w$]*$/iu.test(name);
148148
}
149149

150150
/**

packages/plugin-kit/src/config-comment-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class ConfigCommentParser {
156156
*/
157157
const normalizedString = string
158158
.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu, '"$1":')
159-
.replace(/(\]|[0-9])\s+(?=")/u, "$1,");
159+
.replace(/([\]0-9])\s+(?=")/u, "$1,");
160160

161161
try {
162162
const items = JSON.parse(`{${normalizedString}}`);

tools/update-readme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ README_FILE_PATHS.forEach(filePath => {
4848
const readme = readFileSync(filePath, "utf8");
4949

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

0 commit comments

Comments
 (0)