Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = {
"import/no-cycle": ["warn", { maxDepth: Infinity }],
},
overrides: [
/* Rules to prevent circular dependencies starts here */

// WARN: features must not be imported by app-store or lib
{
files: ["packages/app-store/**/*.{ts,tsx,js,jsx}", "packages/lib/**/*.{ts,tsx,js,jsx}"],
Expand Down Expand Up @@ -59,6 +61,7 @@ module.exports = {
],
},
},

// ERROR: app-store must not import trpc
{
files: ["packages/app-store/**/*.{ts,tsx,js,jsx}"],
Expand Down Expand Up @@ -111,5 +114,25 @@ module.exports = {
],
},
},
/* Rules to prevent circular dependencies ends here */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just organizing rules :)


{
files: ["**/*.{ts,tsx,js,jsx}"],
rules: {
"no-restricted-imports": [
"error",
{
paths: [
{
name: "@calcom/prisma",
importNames: ["default"],
message:
"Use named import '{ prisma }' instead of default import 'prisma' from @calcom/prisma",
},
],
},
],
},
},
],
};
Loading