From 47b5f96ce1f618ed00f73a15d25fa91d5aa434f7 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 6 Mar 2018 11:38:33 +0800 Subject: [PATCH] Exclude no-undef for certain files to make linter happy --- assets/javascripts/wizard/components/wizard-editor.js.es6 | 3 ++- assets/javascripts/wizard/components/wizard-text-field.js.es6 | 2 ++ assets/javascripts/wizard/routes/custom.js.es6 | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/wizard/components/wizard-editor.js.es6 b/assets/javascripts/wizard/components/wizard-editor.js.es6 index b3373dfb..4cd89426 100644 --- a/assets/javascripts/wizard/components/wizard-editor.js.es6 +++ b/assets/javascripts/wizard/components/wizard-editor.js.es6 @@ -1,3 +1,4 @@ +/* eslint no-undef: 0 */ /*global Mousetrap:true */ import { default as computed, on, observes } from 'ember-addons/ember-computed-decorators'; import { cookAsync } from '../lib/text-lite'; @@ -38,7 +39,7 @@ const isInside = (text, regex) => { class Toolbar { - constructor(site) { + constructor() { this.shortcuts = {}; this.groups = [ diff --git a/assets/javascripts/wizard/components/wizard-text-field.js.es6 b/assets/javascripts/wizard/components/wizard-text-field.js.es6 index 63a086db..f450844d 100644 --- a/assets/javascripts/wizard/components/wizard-text-field.js.es6 +++ b/assets/javascripts/wizard/components/wizard-text-field.js.es6 @@ -1,3 +1,5 @@ +/* eslint no-undef: 0 */ + import computed from "ember-addons/ember-computed-decorators"; import { siteDir, isRTL, isLTR } from "discourse/lib/text-direction"; diff --git a/assets/javascripts/wizard/routes/custom.js.es6 b/assets/javascripts/wizard/routes/custom.js.es6 index db5b4ca4..0af1d67f 100644 --- a/assets/javascripts/wizard/routes/custom.js.es6 +++ b/assets/javascripts/wizard/routes/custom.js.es6 @@ -1,3 +1,5 @@ +/* eslint no-undef: 0 */ + import { findCustomWizard } from '../models/custom'; import { ajax } from 'wizard/lib/ajax';