Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

# To enable enterprise-only features please add your environment variable to the .env file then make your way to /auth/setup to select your license and follow instructions.

NEXTSKIP_SEED=true
CALCOM_LICENSE_KEY=
# Signature token for the Cal.com License API (used for self-hosted integrations)
# We will give you a token when we provide you with a license key this ensure you and only you can communicate with the Cal.com License API for your license key
Expand Down
20 changes: 18 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,24 @@ module.exports = {
patterns: [
{
group: ["@calcom/trpc/*", "@trpc/*"],
message: "tRPC imports are blocked in packages/app-store. Move UI to apps/web/components/apps or introduce an API boundary.",
allowTypeImports: false,
message:
"tRPC imports are blocked in packages/app-store. Move UI to apps/web/components/apps or introduce an API boundary.",
},
],
},
],
},
},
{
files: ["apps/web/app/api/platform/**/*"],
rules: {
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["**/ee/**"],
message: "Enterprise features not allowed in platform code",
},
],
},
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/enterprise-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Enterprise Code Check
on: [pull_request]
jobs:
check-enterprise:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check for enterprise imports
run: |
if grep -r "from.*ee/" --include="*.ts" --include="*.tsx" .; then
echo "Enterprise code detected!"
exit 1
fi
Loading
Loading