96252: Enforce tree-shakeable lodash imports in ESLint

This commit is contained in:
Yury Bondarenko
2022-10-24 12:07:18 +02:00
parent 674a4829ce
commit be43fcb47f
3 changed files with 16 additions and 2 deletions

View File

@@ -6,7 +6,8 @@
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-deprecation",
"eslint-plugin-unused-imports"
"eslint-plugin-unused-imports",
"eslint-plugin-lodash"
],
"overrides": [
{
@@ -202,7 +203,12 @@
"deprecation/deprecation": "warn",
"import/order": "off",
"import/no-deprecated": "warn"
"import/no-deprecated": "warn",
"lodash/import-scope": [
"error",
"method"
]
}
},
{