diff --git a/.eslintrc.js b/.eslintrc.js index 6b68d0c27ec0b4..490c542f9d4565 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -83,21 +83,6 @@ const restrictedImports = [ }, ]; -const restrictedGlobals = [ - { - name: 'SCRIPT_DEBUG', - message: 'Use globalThis.SCRIPT_DEBUG', - }, - { - name: 'IS_GUTENBERG_PLUGIN', - message: 'Use globalThis.IS_GUTENBERG_PLUGIN', - }, - { - name: 'IS_WORDPRESS_CORE', - message: 'Use globalThis.IS_WORDPRESS_CORE', - }, -]; - module.exports = { root: true, extends: [ @@ -138,7 +123,6 @@ module.exports = { paths: restrictedImports, }, ], - 'no-restricted-globals': [ 'error', ...restrictedGlobals ], '@typescript-eslint/no-restricted-imports': [ 'error', {