File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 6969 "trailingComma" : " none"
7070 },
7171 "xo" : {
72- "prettier" : true ,
73- "rules" : {
74- "capitalized-comments" : " off"
75- }
72+ "prettier" : true
7673 },
7774 "remarkConfig" : {
7875 "plugins" : [
Original file line number Diff line number Diff line change @@ -57,8 +57,11 @@ test('mdast-util-definitions', (t) => {
5757 'should work on weird identifiers'
5858 )
5959
60- /* eslint-disable-next-line no-use-extend-native/no-use-extend-native */
61- t . equal ( { } . type , undefined , 'should not polute the prototype' ) // type-coverage:ignore-line
60+ /* eslint-disable no-use-extend-native/no-use-extend-native */
61+ // @ts -expect-error: yes.
62+ // type-coverage:ignore-next-line
63+ t . equal ( { } . type , undefined , 'should not polute the prototype' )
64+ /* eslint-enable no-use-extend-native/no-use-extend-native */
6265
6366 t . deepEqual (
6467 definitions ( tree ) ( 'toString' ) ,
@@ -70,8 +73,10 @@ test('mdast-util-definitions', (t) => {
7073 '[example]: https://one.com\n[example]: https://two.com'
7174 )
7275
76+ const example = definitions ( tree ) ( 'example' )
77+
7378 t . deepEqual (
74- definitions ( tree ) ( ' example' ) . url ,
79+ example && example . url ,
7580 'https://one.com' ,
7681 'should prefer the first of duplicate definitions'
7782 )
Original file line number Diff line number Diff line change 1010 "declaration" : true ,
1111 "emitDeclarationOnly" : true ,
1212 "allowSyntheticDefaultImports" : true ,
13- "skipLibCheck" : true
13+ "skipLibCheck" : true ,
14+ "strict" : true
1415 }
1516}
You can’t perform that action at this time.
0 commit comments