From 18f0fc9cb810f6bbf6c6c9785949967b4e2df65f Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 30 Sep 2026 09:28:06 +0200 Subject: [PATCH] Prevent lodash imports --- eslint.config.cjs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/eslint.config.cjs b/eslint.config.cjs index ee5e0a557c..282e1b548c 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -116,7 +116,24 @@ module.exports = [ 'no-eval': 'error', 'no-fallthrough': 'error', 'no-new-wrappers': 'error', - 'no-restricted-imports': ['error', 'rxjs/Rx'], + 'no-restricted-imports': [ + 'error', + { + paths: [ + 'rxjs/Rx', + { + message: 'Import from lodash-es instead.', + name: 'lodash' + } + ], + patterns: [ + { + group: ['lodash/*'], + message: 'Import from lodash-es instead.' + } + ] + } + ], 'no-undef-init': 'error', 'no-underscore-dangle': 'off', 'no-var': 'error',