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) {
2929 return 'atx-closed'
3030 }
3131
32- if ( final . line + 1 === pos . line ) {
32+ if ( final && final . line + 1 === pos . line ) {
3333 return 'setext'
3434 }
3535
36- if ( final . column + depth < pos . column ) {
36+ if ( final && final . column + depth < pos . column ) {
3737 return 'atx-closed'
3838 }
3939
@@ -44,7 +44,7 @@ export function headingStyle(node, relative) {
4444 * Get the probable style of an atx-heading, depending on preferred style.
4545 *
4646 * @param {number } depth
47- * @param {Style } relative
47+ * @param {Style|undefined } relative
4848 * @returns {Style|null }
4949 */
5050function consolidate ( depth , relative ) {
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