Skip to content

Commit 5b83c73

Browse files
committed
tools: turn on no-shadow-restricted-names
Disable `reportGlobalThis`, essentially restore the behaviour to ESLint v9.
1 parent 0808672 commit 5b83c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export default [
228228
...noRestrictedSyntaxCommonLib,
229229
],
230230
'no-self-compare': 'error',
231+
'no-shadow-restricted-names': ['error', { reportGlobalThis: false }],
231232
'no-template-curly-in-string': 'error',
232233
'no-throw-literal': 'error',
233234
'no-undef': ['error', { typeof: true }],
@@ -255,7 +256,6 @@ export default [
255256

256257
// ESLint recommended rules that we disable.
257258
'no-inner-declarations': 'off',
258-
'no-shadow-restricted-names': 'off',
259259
'no-useless-assignment': 'off',
260260

261261
// JSDoc rules.

0 commit comments

Comments
 (0)