update eslint config

This commit is contained in:
Philipp Kühn
2021-12-01 15:40:50 +01:00
parent 400e671454
commit fa18ffe6d7
3 changed files with 11 additions and 3 deletions

View File

@@ -17,9 +17,13 @@ export class Punctuation extends LinterPlugin {
scan() {
this.doc.descendants((node, position) => {
if (!node.isText) return
if (!node.isText) {
return
}
if (!node.text) return
if (!node.text) {
return
}
const matches = this.regex.exec(node.text)