Skip to content
Open
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
19 changes: 18 additions & 1 deletion packages/cloudflare/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@
{
"files": ["**/src/**"],
"rules": {
"sdk/no-class-field-initializers": "off"
"sdk/no-class-field-initializers": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@sentry/node",
"message": "Do not import from `@sentry/node` in the Cloudflare SDK. It relies on Node.js APIs that are only available when the `nodejs_compat` flag is set. The only allowed importers are files in `src/nodejs_compat/`, which are exposed via the `@sentry/cloudflare/nodejs_compat/*` entry points."
}
]
}
]
}
},
{
"files": ["**/src/nodejs_compat/**"],
"rules": {
"no-restricted-imports": "off"
}
}
]
Expand Down
Loading