@@ -285,11 +285,7 @@ export default typescript.config([
285285 'no-dupe-class-members' : 'off' , // TODO(ryan953): Fix violations and delete this line
286286 'no-import-assign' : 'off' , // TODO(ryan953): Fix violations and delete this line
287287 'no-prototype-builtins' : 'off' , // TODO(ryan953): Fix violations and delete this line
288- 'no-redeclare' : 'off' , // TODO(ryan953): Fix violations and delete this line
289- 'no-self-assign' : 'off' , // TODO(ryan953): Fix violations and delete this line
290- 'no-undef' : 'off' , // TODO(ryan953): Fix violations and delete this line
291288 'no-unsafe-optional-chaining' : 'off' , // TODO(ryan953): Fix violations and delete this line
292- 'no-unused-vars' : 'off' , // TODO(ryan953): Fix violations and delete this line
293289 'no-useless-catch' : 'off' , // TODO(ryan953): Fix violations and delete this line
294290 'no-useless-escape' : 'off' , // TODO(ryan953): Fix violations and delete this line
295291 'valid-typeof' : 'off' , // TODO(ryan953): Fix violations and delete this line
@@ -607,6 +603,46 @@ export default typescript.config([
607603 name : 'plugin/prettier' ,
608604 ...prettier ,
609605 } ,
606+ {
607+ name : 'files/*.config.*' ,
608+ files : [ '*.config.*' ] ,
609+ languageOptions : {
610+ globals : {
611+ ...globals . commonjs ,
612+ ...globals . node ,
613+ } ,
614+ } ,
615+ } ,
616+ {
617+ name : 'files/scripts' ,
618+ files : [ 'scripts/**/*.{js,ts}' , 'tests/js/test-balancer/index.js' ] ,
619+ languageOptions : {
620+ sourceType : 'commonjs' ,
621+ globals : {
622+ ...globals . commonjs ,
623+ ...globals . node ,
624+ } ,
625+ } ,
626+ rules : {
627+ 'no-console' : 'off' ,
628+ } ,
629+ } ,
630+ {
631+ name : 'files/jest related' ,
632+ files : [
633+ 'tests/js/jest-pegjs-transform.js' ,
634+ 'tests/js/sentry-test/echartsMock.js' ,
635+ 'tests/js/sentry-test/importStyleMock.js' ,
636+ 'tests/js/sentry-test/svgMock.js' ,
637+ ] ,
638+ languageOptions : {
639+ sourceType : 'commonjs' ,
640+ globals : {
641+ ...globals . commonjs ,
642+ } ,
643+ } ,
644+ rules : { } ,
645+ } ,
610646 {
611647 name : 'files/devtoolbar' ,
612648 files : [ 'static/app/components/devtoolbar/**/*.{ts,tsx}' ] ,
0 commit comments