eslint global app var
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user