From 2ed8536b85014dc2f4874512687e4ba74f54c31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Wed, 5 Jul 2023 17:50:02 +0800 Subject: [PATCH] feat(basic): ban self import (#213) --- 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 fbfbf2c..06581a3 100644 --- a/packages/eslint-config-basic/index.js +++ b/packages/eslint-config-basic/index.js @@ -215,6 +215,7 @@ module.exports = { 'import/no-unresolved': 'off', 'import/no-absolute-path': 'off', 'import/newline-after-import': ['error', { count: 1, considerComments: true }], + 'import/no-self-import': 'error', // Common 'semi': ['error', 'never'],