mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix eslint validation
This commit is contained in:
parent
eb34f9c64f
commit
fc564f6aed
4
libraries/codemirror/addon/lint/eslint.js
vendored
4
libraries/codemirror/addon/lint/eslint.js
vendored
@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
async function validatorJavaScript(text, options) {
|
async function validatorJavaScript(text, options) {
|
||||||
if (glob.isMobile()
|
if (glob.isMobile()
|
||||||
|| glob.getActiveTabNote() == null
|
|| glob.getActiveContextNote() == null
|
||||||
|| glob.getActiveTabNote().mime === 'application/json') {
|
|| glob.getActiveContextNote().mime === 'application/json') {
|
||||||
// eslint doesn't seem to validate pure JSON well
|
// eslint doesn't seem to validate pure JSON well
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -27,11 +27,11 @@ const exportService = require("./export/zip");
|
|||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
function BackendScriptApi(currentNote, apiParams) {
|
function BackendScriptApi(currentNote, apiParams) {
|
||||||
/** @property {BNote} note where script started executing */
|
/** @property {BNote} note where the script started executing */
|
||||||
this.startNote = apiParams.startNote;
|
this.startNote = apiParams.startNote;
|
||||||
/** @property {BNote} note where script is currently executing. Don't mix this up with concept of active note */
|
/** @property {BNote} note where the script is currently executing. Don't mix this up with the concept of active note */
|
||||||
this.currentNote = currentNote;
|
this.currentNote = currentNote;
|
||||||
/** @property {AbstractBeccaEntity} entity whose event triggered this executions */
|
/** @property {AbstractBeccaEntity} entity whose event triggered this execution */
|
||||||
this.originEntity = apiParams.originEntity;
|
this.originEntity = apiParams.originEntity;
|
||||||
|
|
||||||
for (const key in apiParams) {
|
for (const key in apiParams) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user