File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed
Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ const { naming } = Legacy;
144144 * @returns {boolean } `true` if the name is a valid identifier.
145145 */
146146function isValidIdentifier ( name ) {
147- return / ^ [ a - z _ $ ] [ 0 - 9 a - z _ $ ] * $ / iu. test ( name ) ;
147+ return / ^ [ a - z _ $ ] [ \w $ ] * $ / iu. test ( name ) ;
148148}
149149
150150/**
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class ConfigCommentParser {
156156 */
157157 const normalizedString = string
158158 . replace ( / (?< ! [ - a - z A - Z 0 - 9 / ] ) ( [ - a - z A - Z 0 - 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 } }` ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ README_FILE_PATHS.forEach(filePath => {
4848 const readme = readFileSync ( filePath , "utf8" ) ;
4949
5050 let newReadme = readme . replace (
51- / < ! - - s p o n s o r s s t a r t - - > [ \w \W ] * ?< ! - - s p o n s o r s e n d - - > / u,
51+ / < ! - - s p o n s o r s s t a r t - - > [ \s \S ] * ?< ! - - s p o n s o r s e n d - - > / u,
5252 `<!--sponsorsstart-->\n\n${ allSponsors } \n<!--sponsorsend-->` ,
5353 ) ;
5454
You can’t perform that action at this time.
0 commit comments