fix linting error

This commit is contained in:
Hans Pagel 2021-01-19 15:03:34 +01:00
parent 7f63a0b2e0
commit 43b0e031b0

View File

@ -12,7 +12,7 @@ export class HeadingLevel extends LinterPlugin {
let lastHeadLevel = null
this.doc.descendants((node, position) => {
if (node.type.name == 'heading') {
if (node.type.name === 'heading') {
// Check whether heading levels fit under the current level
const { level } = node.attrs