Browse Source

Exclude no-undef for certain files to make linter happy

Angus McLeod 7 years ago
parent
commit
47b5f96ce1

+ 2 - 1
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 = [

+ 2 - 0
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";
 

+ 2 - 0
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';