From ceebb49944ec0008811169ac9f4156d605a6367f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Sun, 26 Jan 2025 00:15:46 +0800 Subject: [PATCH] chore(eslint): restricted import lodash --- .eslintrc.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 2bebd5d4..222b0d9c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -73,5 +73,16 @@ module.exports = { 'func-names': 'off', 'consistent-return': 'off', 'default-case': 'off', + 'no-restricted-imports': [ + 'error', + { + paths: [ + { + name: 'lodash', + message: 'Please use lodash-es instead.', + }, + ], + }, + ], }, };