Skip to content

Commit 57c0565

Browse files
antonisclaude
andcommitted
fix(core): Suppress tsgolint tsconfig diagnostics for oxlint type-aware linting
The `@sentry-internal/typescript/tsconfig.json` sets `alwaysStrict: false` which tsgolint rejects. Use the env var workaround from sentry-javascript. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 48885d2 commit 57c0565

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"test:watch": "npx jest --watch",
3939
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/react @sentry/types",
4040
"fix": "npx run-s fix:oxlint fix:prettier",
41-
"fix:oxlint": "oxlint --type-aware --tsconfig tsconfig.lint.json --fix",
41+
"fix:oxlint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --fix",
4242
"fix:prettier": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write \"{src,test,scripts,plugin/src}/**/**.ts\"",
4343
"lint": "npx run-s lint:oxlint lint:prettier",
44-
"lint:oxlint": "sh -c 'OUT=$(oxlint --type-aware --tsconfig tsconfig.lint.json --deny-warnings 2>&1); echo \"$OUT\"; echo \"$OUT\" | grep -qE \"Found 0 warnings and [01] error\"'",
44+
"lint:oxlint": "sh -c 'OUT=$(OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --deny-warnings 2>&1); echo \"$OUT\"; echo \"$OUT\" | grep -qE \"Found 0 warnings and [01] error\"'",
4545
"lint:prettier": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --check \"{src,test,scripts,plugin/src}/**/**.ts\""
4646
},
4747
"bin": {

samples/expo/app.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"resizeMode": "contain",
1414
"backgroundColor": "#ffffff"
1515
},
16-
"assetBundlePatterns": [
17-
"**/*"
18-
],
16+
"assetBundlePatterns": ["**/*"],
1917
"ios": {
2018
"supportsTablet": true,
2119
"bundleIdentifier": "io.sentry.expo.sample",
@@ -108,4 +106,4 @@
108106
"url": "https://u.expo.dev/00000000-0000-0000-0000-000000000000"
109107
}
110108
}
111-
}
109+
}

0 commit comments

Comments
 (0)