Skip to content

Commit 90cfe00

Browse files
authored
build: Turn unused vars from TS error into eslint error (#6747)
1 parent 476f51b commit 90cfe00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/eslint-config-sdk/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
'@sentry-internal/sdk/no-eq-empty': 'error',
2525

2626
// Unused variables should be removed unless they are marked with and underscore (ex. _varName).
27-
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
27+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
2828

2929
// Make sure that all ts-ignore comments are given a description.
3030
'@typescript-eslint/ban-ts-comment': [

packages/typescript/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"noFallthroughCasesInSwitch": true,
1414
"noImplicitReturns": true,
1515
"noImplicitUseStrict": true,
16-
"noUnusedLocals": true,
17-
"noUnusedParameters": true,
16+
"noUnusedLocals": false,
17+
"noUnusedParameters": false,
1818
"preserveWatchOutput": true,
1919
"sourceMap": true,
2020
"strict": true,

0 commit comments

Comments
 (0)