@@ -4,7 +4,7 @@ module.exports = {
4
4
node : true ,
5
5
} ,
6
6
extends : [ 'prettier' , 'eslint:recommended' , 'plugin:import/errors' , 'plugin:import/warnings' ] ,
7
- plugins : [ '@sentry-internal/eslint-plugin-sdk' , 'simple-import-sort' , 'jest' ] ,
7
+ plugins : [ '@sentry-internal/eslint-plugin-sdk' , 'simple-import-sort' ] ,
8
8
overrides : [
9
9
{
10
10
// Configuration for JavaScript files
@@ -184,32 +184,24 @@ module.exports = {
184
184
'@typescript-eslint/no-empty-function' : 'off' ,
185
185
'@sentry-internal/sdk/no-optional-chaining' : 'off' ,
186
186
'@sentry-internal/sdk/no-nullish-coalescing' : 'off' ,
187
-
188
- // Prevent permanent usage of `it.only`, `fit`, `test.only` etc
189
- // We want to avoid debugging leftovers making their way into the codebase
190
- "jest/no-focused-tests" : "error" ,
191
-
192
- // Prevent permanent usage of `it.skip`, `xit`, `test.skip` etc
193
- // We want to avoid debugging leftovers making their way into the codebase
194
- // If there's a good reason to skip a test (e.g. bad flakiness), just add an ignore comment
195
- "jest/no-disabled-tests" : "error" ,
196
187
} ,
197
188
} ,
198
189
{
199
190
// Configuration only for test files (this won't apply to utils or other files in test directories)
191
+ plugins : [ 'jest' ] ,
200
192
env : {
201
193
jest : true ,
202
194
} ,
203
195
files : [ 'test.ts' , '*.test.ts' , '*.test.tsx' , '*.test.js' , '*.test.jsx' ] ,
204
196
rules : {
205
197
// Prevent permanent usage of `it.only`, `fit`, `test.only` etc
206
198
// We want to avoid debugging leftovers making their way into the codebase
207
- " jest/no-focused-tests" : " error" ,
199
+ ' jest/no-focused-tests' : ' error' ,
208
200
209
201
// Prevent permanent usage of `it.skip`, `xit`, `test.skip` etc
210
202
// We want to avoid debugging leftovers making their way into the codebase
211
203
// If there's a good reason to skip a test (e.g. bad flakiness), just add an ignore comment
212
- " jest/no-disabled-tests" : " error" ,
204
+ ' jest/no-disabled-tests' : ' error' ,
213
205
} ,
214
206
} ,
215
207
{
0 commit comments