From 1ecc1a155d20fc1a1e2b34f9cf98d32951980b13 Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Tue, 15 Feb 2022 20:36:43 -0600 Subject: [PATCH] Cleanup no-restricted-globals --- .eslintrc.js | 10 ---------- .../store/types/ember-data-qunit-asserts/index.d.ts | 1 - 2 files changed, 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4b46b8479bf..08669fa135b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -52,7 +52,6 @@ module.exports = { 'no-console': 'error', // no longer recommended in eslint v6, this restores it 'no-eq-null': 'error', 'no-eval': 'error', - 'no-restricted-globals': ['error', { name: 'Promise', message: 'Must use RSVP.Promise' }], 'no-unused-vars': ['error', { args: 'none' }], 'simple-import-sort/imports': ['error', { groups: ImportSortGroups }], 'sort-imports': 'off', @@ -109,7 +108,6 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], 'ember-data/prefer-static-type-import': 'error', - 'no-restricted-globals': ['off'], 'no-unused-vars': 'off', 'prefer-const': 'off', 'prefer-rest-params': 'off', @@ -133,7 +131,6 @@ module.exports = { '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], 'ember-data/prefer-static-type-import': 'error', - 'no-restricted-globals': ['off'], 'no-unused-vars': 'off', 'prefer-const': 'off', 'prefer-rest-params': 'off', @@ -377,7 +374,6 @@ module.exports = { 'import/newline-after-import': 'error', 'import/no-duplicates': 'error', 'import/order': ['error', { 'newlines-between': 'always' }], - 'no-restricted-globals': 'off', 'simple-import-sort/sort': 'off', }, }, @@ -388,9 +384,6 @@ module.exports = { env: { mocha: true, }, - rules: { - 'no-restricted-globals': 'off', - }, }, // docs @@ -405,9 +398,6 @@ module.exports = { sourceType: 'script', ecmaVersion: 2015, }, - rules: { - 'no-restricted-globals': 'off', - }, }, // scripts files diff --git a/packages/store/types/ember-data-qunit-asserts/index.d.ts b/packages/store/types/ember-data-qunit-asserts/index.d.ts index 0004f341983..c009d5165ec 100644 --- a/packages/store/types/ember-data-qunit-asserts/index.d.ts +++ b/packages/store/types/ember-data-qunit-asserts/index.d.ts @@ -1,4 +1,3 @@ -/* eslint no-restricted-globals: "off" */ declare global { interface DeprecationConfig { id: string;