Skip to content

Commit

Permalink
Forbid lodash dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj authored Sep 14, 2024
1 parent 4809f3a commit 023df68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ module.exports = defineConfig({
constraints: async ctx => {
enforceConsistentDependenciesAcrossTheProject(ctx);
enforceWorkspaceDependenciesWhenPossible(ctx);
forbidDependency(ctx, `@types/lodash`, `Don't depend on lodash - we use es-toolkit instead`);
forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`);
forbidDependency(ctx, `lodash`, `Don't depend on lodash - we use es-toolkit instead`);
forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`);
enforceDependencyRelationship(ctx, `typescript`, `tslib`, true);
enforceUpdateLocalScripts(ctx);
Expand Down

0 comments on commit 023df68

Please sign in to comment.