Browse Source

Ensure no unused locals for typescript

Except lodash' _ because Microsoft/TypeScript#30760.
pull/4459/head
nanaya 3 months ago
parent
commit
1974592b33
2 changed files with 1 additions and 5 deletions
  1. 0
    5
      resources/assets/lib/store.ts
  2. 1
    0
      tsconfig.json

+ 0
- 5
resources/assets/lib/store.ts View File

@@ -33,11 +33,6 @@ const options = {
33 33
 
34 34
 const client = Shopify.buildClient(options);
35 35
 
36
-interface LineItem {
37
-  quantity: number;
38
-  variantId: string;
39
-}
40
-
41 36
 export class Store {
42 37
   static init(sharedContext: Window) {
43 38
     sharedContext.Store = sharedContext.Store || new Store();

+ 1
- 0
tsconfig.json View File

@@ -8,6 +8,7 @@
8 8
     "module": "es6",
9 9
     "moduleResolution": "node",
10 10
     "noImplicitAny": true,
11
+    "noUnusedLocals": true,
11 12
     "strictNullChecks": true,
12 13
     "strictPropertyInitialization": true,
13 14
     "target": "es6",

Loading…
Cancel
Save