Browse Source

lint: fix warnings so we can upgrade ts parser (#62445)

Required by https://github.com/getsentry/eslint-config-sentry/pull/197
Jonas 1 year ago
parent
commit
4a49aa5a11

+ 0 - 2
static/app/types/utils.tsx

@@ -6,12 +6,10 @@ import type {Organization, SharedViewOrganization} from './organization';
 
 // This declares a function which asserts that the expression called
 // value is true:
-// eslint-disable-next-line prettier/prettier
 export function assert(_value: unknown): asserts _value {}
 
 // This declares a function which asserts that the expression called
 // value is of type Type:
-// eslint-disable-next-line prettier/prettier
 export function assertType<Type>(_value: unknown): asserts _value is Type {}
 
 export function isNotSharedOrganization(

+ 3 - 3
static/app/utils/profiling/gl/utils.spec.tsx

@@ -20,8 +20,8 @@ describe('makeProjectionMatrix', () => {
   it('should return a projection matrix', () => {
     // prettier-ignore
     expect(makeProjectionMatrix(1024, 768)).toEqual(mat3.fromValues(
-      2/1024, 0, 0,
-      -0, -2/768, -0,
+      2 / 1024, 0, 0,
+      -0, -2 / 768, -0,
       -1,1,1
     ));
   });
@@ -325,7 +325,7 @@ describe('Rect', () => {
         10,0,0,
         0,20,0,
         3,4,0,
-  )
+  );
       expect(new Rect(1, 1, 1, 1).transformRect(matrix)).toEqual(
         new Rect(13, 24, 10, 20)
       );

+ 1 - 1
static/app/utils/profiling/speedscope.tsx

@@ -136,7 +136,7 @@ export class Rect {
       w, 0, 0,
       0, h, 0,
       x, y, 1
-    )
+    );
   }
 
   hasIntersectionWith(other: Rect): boolean {