From 3e095e2b152c26052f383103301fa75704398556 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 12 Jan 2018 16:37:54 -0500 Subject: [PATCH] Remove embertest from ESLint configuration. As of Ember 3.0 the new testing APIs introduced in emberjs/rfcs#232 and emberjs/rfcs#268 are enabled and used by default. In these APIs no globals are used, therefore this extra `tests/` override is removed. This specifically removes the following globals from being allowed: * `andThen` * `click` * `currentPath` * `currentRouteName` * `currentURL` * `fillIn` * `find` * `findWithAssert` * `keyEvent` * `pauseTest` * `resumeTest` * `triggerEvent` * `visit` * `wait` --- blueprints/app/files/.eslintrc.js | 9 --------- blueprints/module-unification-app/files/.eslintrc.js | 9 --------- tests/fixtures/addon/npm/.eslintrc.js | 9 --------- tests/fixtures/addon/yarn/.eslintrc.js | 9 --------- tests/fixtures/app/npm/.eslintrc.js | 9 --------- tests/fixtures/app/yarn/.eslintrc.js | 9 --------- tests/fixtures/module-unification-app/npm/.eslintrc.js | 9 --------- tests/fixtures/module-unification-app/yarn/.eslintrc.js | 9 --------- 8 files changed, 72 deletions(-) diff --git a/blueprints/app/files/.eslintrc.js b/blueprints/app/files/.eslintrc.js index f89e280507b..b55506426ed 100644 --- a/blueprints/app/files/.eslintrc.js +++ b/blueprints/app/files/.eslintrc.js @@ -43,15 +43,6 @@ module.exports = { rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { // add your custom rules and overrides for node files here })<% } %> - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/blueprints/module-unification-app/files/.eslintrc.js b/blueprints/module-unification-app/files/.eslintrc.js index 7d328870e0b..988ed9b4170 100644 --- a/blueprints/module-unification-app/files/.eslintrc.js +++ b/blueprints/module-unification-app/files/.eslintrc.js @@ -34,15 +34,6 @@ module.exports = { browser: false, node: true } - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/addon/npm/.eslintrc.js b/tests/fixtures/addon/npm/.eslintrc.js index 3a07c6bcc17..1dc3939bebb 100644 --- a/tests/fixtures/addon/npm/.eslintrc.js +++ b/tests/fixtures/addon/npm/.eslintrc.js @@ -43,15 +43,6 @@ module.exports = { rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { // add your custom rules and overrides for node files here }) - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/addon/yarn/.eslintrc.js b/tests/fixtures/addon/yarn/.eslintrc.js index 3a07c6bcc17..1dc3939bebb 100644 --- a/tests/fixtures/addon/yarn/.eslintrc.js +++ b/tests/fixtures/addon/yarn/.eslintrc.js @@ -43,15 +43,6 @@ module.exports = { rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { // add your custom rules and overrides for node files here }) - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/app/npm/.eslintrc.js b/tests/fixtures/app/npm/.eslintrc.js index 1f7a6c0bd59..28cf4407c99 100644 --- a/tests/fixtures/app/npm/.eslintrc.js +++ b/tests/fixtures/app/npm/.eslintrc.js @@ -32,15 +32,6 @@ module.exports = { browser: false, node: true } - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/app/yarn/.eslintrc.js b/tests/fixtures/app/yarn/.eslintrc.js index 1f7a6c0bd59..28cf4407c99 100644 --- a/tests/fixtures/app/yarn/.eslintrc.js +++ b/tests/fixtures/app/yarn/.eslintrc.js @@ -32,15 +32,6 @@ module.exports = { browser: false, node: true } - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/module-unification-app/npm/.eslintrc.js b/tests/fixtures/module-unification-app/npm/.eslintrc.js index 7d328870e0b..988ed9b4170 100644 --- a/tests/fixtures/module-unification-app/npm/.eslintrc.js +++ b/tests/fixtures/module-unification-app/npm/.eslintrc.js @@ -34,15 +34,6 @@ module.exports = { browser: false, node: true } - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] }; diff --git a/tests/fixtures/module-unification-app/yarn/.eslintrc.js b/tests/fixtures/module-unification-app/yarn/.eslintrc.js index 7d328870e0b..988ed9b4170 100644 --- a/tests/fixtures/module-unification-app/yarn/.eslintrc.js +++ b/tests/fixtures/module-unification-app/yarn/.eslintrc.js @@ -34,15 +34,6 @@ module.exports = { browser: false, node: true } - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true - } } ] };