From e787e9a64725a8a173a5195d1a675cc4416bb744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Fri, 26 May 2023 23:39:10 +0800 Subject: [PATCH] feat(basic): ban `global` variable (#189) --- packages/eslint-config-basic/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-basic/index.js b/packages/eslint-config-basic/index.js index 7e503db..3e0c916 100644 --- a/packages/eslint-config-basic/index.js +++ b/packages/eslint-config-basic/index.js @@ -259,6 +259,7 @@ module.exports = { asyncArrow: 'always', }, ], + 'no-restricted-globals': ['error', { name: 'global', message: 'Use `globalThis` instead.' }], // es6 'no-var': 'error',