File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const openTag = '<[A-Za-z]*[A-Za-z0-9\\.\\-]*' + attribute + '*\\s*>'
23
23
export const closeTag = '<\\s*\\/[A-Za-z]*[A-Za-z0-9\\.\\-]*\\s*>'
24
24
export const selfClosingTag =
25
25
'<[A-Za-z]*[A-Za-z0-9\\.\\-]*' + attribute + '*\\s*\\/?>'
26
- export const comment = '<!---->|<!-- (?:-?[^>-]) (?:-? [^-]) *-->'
26
+ export const comment = '<!--(?:[^-]|- (?:[^-]|-+ [^->]))*- *-->'
27
27
export const commentOpen = '(<!---*)'
28
28
export const commentClose = '(-*-->)'
29
29
export const commentContent = `${ commentOpen } ([\\s\\S]*?)${ commentClose } `
Original file line number Diff line number Diff line change @@ -169,6 +169,19 @@ Array [
169
169
]
170
170
` ;
171
171
172
+ exports [` fixtures should match all snapshots: comments.mdx 1` ] = `
173
+ Array [
174
+ Object {
175
+ " column" : 2 ,
176
+ " line" : 1 ,
177
+ " message" : " Unused eslint-disable directive (no problems were reported from 'no-console')." ,
178
+ " nodeType" : null ,
179
+ " ruleId" : null ,
180
+ " severity" : 2 ,
181
+ } ,
182
+ ]
183
+ ` ;
184
+
172
185
exports [` fixtures should match all snapshots: details.mdx 1` ] = `
173
186
Array [
174
187
Object {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const getCli = (lintCodeBlocks = false) =>
35
35
]
36
36
: [ ] ,
37
37
} ,
38
+ reportUnusedDisableDirectives : 'error' ,
38
39
} )
39
40
40
41
describe ( 'fixtures' , ( ) => {
Original file line number Diff line number Diff line change
1
+ <!-- eslint-disable-next-line no-console -- Here's a description about why this configuration is necessary. -->
You can’t perform that action at this time.
0 commit comments