From 51563a2d1c45fe35a799d4c245d7a5cabd122ec7 Mon Sep 17 00:00:00 2001 From: Ryan Panning Date: Tue, 1 Oct 2024 09:53:15 -0500 Subject: [PATCH] Disable lint errors Runloop usage is in tests, not components. Render modifiers will be done whenever froala-editor v5 comes out, or ember-addon v2 format is done. Existing issue for this task: #109 --- .template-lintrc.js | 3 +++ tests/integration/components/froala-editor-test.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.template-lintrc.js b/.template-lintrc.js index f35f61c..07b02ab 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -2,4 +2,7 @@ module.exports = { extends: 'recommended', + rules: { + 'no-at-ember-render-modifiers': false, + }, }; diff --git a/tests/integration/components/froala-editor-test.js b/tests/integration/components/froala-editor-test.js index 581e943..4f88553 100644 --- a/tests/integration/components/froala-editor-test.js +++ b/tests/integration/components/froala-editor-test.js @@ -354,6 +354,7 @@ module('Integration | Component | froala-editor', function (hooks) { this.set('disabled', false); this.set('enableDisabled', () => { + // eslint-disable-next-line ember/no-runloop next(this, () => { this.set('disabled', true); }); @@ -385,6 +386,7 @@ module('Integration | Component | froala-editor', function (hooks) { this.set('disabled', true); this.set('disableDisabled', () => { + // eslint-disable-next-line ember/no-runloop next(this, () => { this.set('disabled', false); }); @@ -393,6 +395,7 @@ module('Integration | Component | froala-editor', function (hooks) { this.set('editOn', () => { assert.ok(true); assertionsRan++; + // eslint-disable-next-line ember/no-runloop next(this, () => { this.set('disabled', true); });