Skip to content

Commit 5d65332

Browse files
committed
chore(cloudflare): Remove restricted imports
1 parent 13a8f82 commit 5d65332

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

packages/cloudflare/.oxlintrc.json

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,7 @@
1414
{
1515
"files": ["**/src/**"],
1616
"rules": {
17-
"sdk/no-class-field-initializers": "off",
18-
"no-restricted-imports": [
19-
"error",
20-
{
21-
"paths": [
22-
{
23-
"name": "@sentry/node",
24-
"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."
25-
},
26-
{
27-
"name": "@sentry/server-utils",
28-
"message": "Do not import from `@sentry/server-utils` 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."
29-
}
30-
],
31-
"patterns": [
32-
{
33-
"group": ["@sentry/node/**"],
34-
"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."
35-
},
36-
{
37-
"group": ["@sentry/server-utils/**"],
38-
"message": "Do not import from `@sentry/server-utils` 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."
39-
}
40-
]
41-
}
42-
]
43-
}
44-
},
45-
{
46-
"files": ["**/src/nodejs_compat/**", "**/src/vite/**"],
47-
"rules": {
48-
"no-restricted-imports": "off"
17+
"sdk/no-class-field-initializers": "off"
4918
}
5019
}
5120
]

0 commit comments

Comments
 (0)