Skip to content

Commit

Permalink
No more simple eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed May 13, 2024
1 parent 79351b3 commit 0cf1c94
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -138,7 +123,6 @@ module.exports = {
paths: restrictedImports,
},
],
'no-restricted-globals': [ 'error', ...restrictedGlobals ],
'@typescript-eslint/no-restricted-imports': [
'error',
{
Expand Down

0 comments on commit 0cf1c94

Please sign in to comment.