File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ export function headingStyle(node, relative) {
29
29
return 'atx-closed'
30
30
}
31
31
32
- if ( final . line + 1 === pos . line ) {
32
+ if ( final && final . line + 1 === pos . line ) {
33
33
return 'setext'
34
34
}
35
35
36
- if ( final . column + depth < pos . column ) {
36
+ if ( final && final . column + depth < pos . column ) {
37
37
return 'atx-closed'
38
38
}
39
39
@@ -44,7 +44,7 @@ export function headingStyle(node, relative) {
44
44
* Get the probable style of an atx-heading, depending on preferred style.
45
45
*
46
46
* @param {number } depth
47
- * @param {Style } relative
47
+ * @param {Style|undefined } relative
48
48
* @returns {Style|null }
49
49
*/
50
50
function consolidate ( depth , relative ) {
Original file line number Diff line number Diff line change 10
10
"declaration" : true ,
11
11
"emitDeclarationOnly" : true ,
12
12
"allowSyntheticDefaultImports" : true ,
13
- "skipLibCheck" : true
13
+ "skipLibCheck" : true ,
14
+ "strict" : true
14
15
}
15
16
}
You can’t perform that action at this time.
0 commit comments