diff --git a/.eslintrc.js b/.eslintrc.js index 5bf7b7a..a5b429b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,6 +4,9 @@ module.exports = { es2021: true, }, extends: ['standard'], + globals: { + app: 'readonly', + }, parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 13, diff --git a/src/main.ts b/src/main.ts index b16b101..ca41bbe 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,3 @@ -/* global app */ // make eslint happy with Obisidian's global app reference import { MarkdownView, Plugin, TFile } from 'obsidian' import { addToIndex,