Bläddra i källkod

Add @typescript-eslint/parser & typescript to lint index.d.ts

iou90 4 år sedan
förälder
incheckning
ec2f6af2cd
2 ändrade filer med 104 tillägg och 10 borttagningar
  1. 101
    9
      package-lock.json
  2. 3
    1
      package.json

+ 101
- 9
package-lock.json Visa fil

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-autoheight-webview",
3
-  "version": "1.5.1",
3
+  "version": "1.5.2",
4 4
   "lockfileVersion": 1,
5 5
   "requires": true,
6 6
   "dependencies": {
@@ -149,6 +149,18 @@
149 149
         "prettier": "^2.0.2"
150 150
       },
151 151
       "dependencies": {
152
+        "@typescript-eslint/parser": {
153
+          "version": "2.34.0",
154
+          "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.34.0.tgz",
155
+          "integrity": "sha512-03ilO0ucSD0EPTw2X4PntSIRFtDPWjrVq7C3/Z3VQHRC7+13YB55rcJI3Jt+YgeHbjUdJPcPa7b23rXCBokuyA==",
156
+          "dev": true,
157
+          "requires": {
158
+            "@types/eslint-visitor-keys": "^1.0.0",
159
+            "@typescript-eslint/experimental-utils": "2.34.0",
160
+            "@typescript-eslint/typescript-estree": "2.34.0",
161
+            "eslint-visitor-keys": "^1.1.0"
162
+          }
163
+        },
152 164
         "eslint-plugin-react": {
153 165
           "version": "7.19.0",
154 166
           "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.19.0.tgz",
@@ -169,6 +181,12 @@
169 181
             "xregexp": "^4.3.0"
170 182
           }
171 183
         },
184
+        "eslint-visitor-keys": {
185
+          "version": "1.3.0",
186
+          "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
187
+          "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
188
+          "dev": true
189
+        },
172 190
         "semver": {
173 191
           "version": "6.3.0",
174 192
           "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
@@ -245,25 +263,76 @@
245 263
       }
246 264
     },
247 265
     "@typescript-eslint/parser": {
248
-      "version": "2.34.0",
249
-      "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.34.0.tgz",
250
-      "integrity": "sha512-03ilO0ucSD0EPTw2X4PntSIRFtDPWjrVq7C3/Z3VQHRC7+13YB55rcJI3Jt+YgeHbjUdJPcPa7b23rXCBokuyA==",
266
+      "version": "3.9.1",
267
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.9.1.tgz",
268
+      "integrity": "sha512-y5QvPFUn4Vl4qM40lI+pNWhTcOWtpZAJ8pOEQ21fTTW4xTJkRplMjMRje7LYTXqVKKX9GJhcyweMz2+W1J5bMg==",
251 269
       "dev": true,
252 270
       "requires": {
253 271
         "@types/eslint-visitor-keys": "^1.0.0",
254
-        "@typescript-eslint/experimental-utils": "2.34.0",
255
-        "@typescript-eslint/typescript-estree": "2.34.0",
272
+        "@typescript-eslint/experimental-utils": "3.9.1",
273
+        "@typescript-eslint/types": "3.9.1",
274
+        "@typescript-eslint/typescript-estree": "3.9.1",
256 275
         "eslint-visitor-keys": "^1.1.0"
257 276
       },
258 277
       "dependencies": {
278
+        "@typescript-eslint/experimental-utils": {
279
+          "version": "3.9.1",
280
+          "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.9.1.tgz",
281
+          "integrity": "sha512-lkiZ8iBBaYoyEKhCkkw4SAeatXyBq9Ece5bZXdLe1LWBUwTszGbmbiqmQbwWA8cSYDnjWXp9eDbXpf9Sn0hLAg==",
282
+          "dev": true,
283
+          "requires": {
284
+            "@types/json-schema": "^7.0.3",
285
+            "@typescript-eslint/types": "3.9.1",
286
+            "@typescript-eslint/typescript-estree": "3.9.1",
287
+            "eslint-scope": "^5.0.0",
288
+            "eslint-utils": "^2.0.0"
289
+          }
290
+        },
291
+        "@typescript-eslint/typescript-estree": {
292
+          "version": "3.9.1",
293
+          "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.1.tgz",
294
+          "integrity": "sha512-IqM0gfGxOmIKPhiHW/iyAEXwSVqMmR2wJ9uXHNdFpqVvPaQ3dWg302vW127sBpAiqM9SfHhyS40NKLsoMpN2KA==",
295
+          "dev": true,
296
+          "requires": {
297
+            "@typescript-eslint/types": "3.9.1",
298
+            "@typescript-eslint/visitor-keys": "3.9.1",
299
+            "debug": "^4.1.1",
300
+            "glob": "^7.1.6",
301
+            "is-glob": "^4.0.1",
302
+            "lodash": "^4.17.15",
303
+            "semver": "^7.3.2",
304
+            "tsutils": "^3.17.1"
305
+          }
306
+        },
307
+        "eslint-utils": {
308
+          "version": "2.1.0",
309
+          "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
310
+          "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
311
+          "dev": true,
312
+          "requires": {
313
+            "eslint-visitor-keys": "^1.1.0"
314
+          }
315
+        },
259 316
         "eslint-visitor-keys": {
260
-          "version": "1.1.0",
261
-          "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz",
262
-          "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==",
317
+          "version": "1.3.0",
318
+          "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
319
+          "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
320
+          "dev": true
321
+        },
322
+        "semver": {
323
+          "version": "7.3.2",
324
+          "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
325
+          "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
263 326
           "dev": true
264 327
         }
265 328
       }
266 329
     },
330
+    "@typescript-eslint/types": {
331
+      "version": "3.9.1",
332
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.9.1.tgz",
333
+      "integrity": "sha512-15JcTlNQE1BsYy5NBhctnEhEoctjXOjOK+Q+rk8ugC+WXU9rAcS2BYhoh6X4rOaXJEpIYDl+p7ix+A5U0BqPTw==",
334
+      "dev": true
335
+    },
267 336
     "@typescript-eslint/typescript-estree": {
268 337
       "version": "2.34.0",
269 338
       "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.34.0.tgz",
@@ -293,6 +362,23 @@
293 362
         }
294 363
       }
295 364
     },
365
+    "@typescript-eslint/visitor-keys": {
366
+      "version": "3.9.1",
367
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.1.tgz",
368
+      "integrity": "sha512-zxdtUjeoSh+prCpogswMwVUJfEFmCOjdzK9rpNjNBfm6EyPt99x3RrJoBOGZO23FCt0WPKUCOL5mb/9D5LjdwQ==",
369
+      "dev": true,
370
+      "requires": {
371
+        "eslint-visitor-keys": "^1.1.0"
372
+      },
373
+      "dependencies": {
374
+        "eslint-visitor-keys": {
375
+          "version": "1.3.0",
376
+          "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
377
+          "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
378
+          "dev": true
379
+        }
380
+      }
381
+    },
296 382
     "acorn": {
297 383
       "version": "7.1.1",
298 384
       "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz",
@@ -1787,6 +1873,12 @@
1787 1873
       "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
1788 1874
       "dev": true
1789 1875
     },
1876
+    "typescript": {
1877
+      "version": "3.9.7",
1878
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
1879
+      "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==",
1880
+      "dev": true
1881
+    },
1790 1882
     "uri-js": {
1791 1883
       "version": "4.2.2",
1792 1884
       "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",

+ 3
- 1
package.json Visa fil

@@ -38,11 +38,13 @@
38 38
   },
39 39
   "devDependencies": {
40 40
     "@react-native-community/eslint-config": "^1.1.0",
41
+    "@typescript-eslint/parser": "^3.9.1",
41 42
     "babel-eslint": "^10.1.0",
42 43
     "eslint": "^6.8.0",
43 44
     "eslint-plugin-jsx": "^0.1.0",
44 45
     "eslint-plugin-react": "^7.20.3",
45 46
     "eslint-plugin-react-hooks": "^3.0.0",
46
-    "eslint-plugin-react-native": "^3.8.1"
47
+    "eslint-plugin-react-native": "^3.8.1",
48
+    "typescript": "^3.9.7"
47 49
   }
48 50
 }