Skip to content

Commit 023df68

Browse files
authored
Forbid lodash dependency
1 parent 4809f3a commit 023df68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

yarn.config.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ module.exports = defineConfig({
208208
constraints: async ctx => {
209209
enforceConsistentDependenciesAcrossTheProject(ctx);
210210
enforceWorkspaceDependenciesWhenPossible(ctx);
211+
forbidDependency(ctx, `@types/lodash`, `Don't depend on lodash - we use es-toolkit instead`);
212+
forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`);
213+
forbidDependency(ctx, `lodash`, `Don't depend on lodash - we use es-toolkit instead`);
211214
forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`);
212215
enforceDependencyRelationship(ctx, `typescript`, `tslib`, true);
213216
enforceUpdateLocalScripts(ctx);

0 commit comments

Comments
 (0)