eslint global app var

This commit is contained in:
Simon Cambier
2022-04-22 21:32:46 +02:00
parent cfb74f30b5
commit acece86ee3
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ module.exports = {
es2021: true, es2021: true,
}, },
extends: ['standard'], extends: ['standard'],
globals: {
app: 'readonly',
},
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
ecmaVersion: 13, ecmaVersion: 13,

View File

@@ -1,4 +1,3 @@
/* global app */ // make eslint happy with Obisidian's global app reference
import { MarkdownView, Plugin, TFile } from 'obsidian' import { MarkdownView, Plugin, TFile } from 'obsidian'
import { import {
addToIndex, addToIndex,