From 9dbb04d165195d4b7627568acd1ea5de37c2edb0 Mon Sep 17 00:00:00 2001 From: Lalle <29478339+LalleSX@users.noreply.github.com> Date: Fri, 5 May 2023 13:54:23 +0200 Subject: [PATCH] config update --- package.json | 1 + pnpm-lock.yaml | 13 +++++++++++++ src/types/globals.d.ts | 1 - tsconfig.json | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5583fb1..f8a73b1 100644 --- a/package.json +++ b/package.json @@ -141,6 +141,7 @@ }, "dependencies": { "@types/firefox-webext-browser": "^111.0.1", + "@types/jquery": "^3.5.16", "@typescript-eslint/eslint-plugin": "^5.59.1", "@typescript-eslint/parser": "^5.59.1", "eslint": "^8.39.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b4e1596..e3bef03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ dependencies: '@types/firefox-webext-browser': specifier: ^111.0.1 version: 111.0.1 + '@types/jquery': + specifier: ^3.5.16 + version: 3.5.16 '@typescript-eslint/eslint-plugin': specifier: ^5.59.1 version: 5.59.1(@typescript-eslint/parser@5.59.1)(eslint@8.39.0)(typescript@4.9.5) @@ -278,6 +281,12 @@ packages: resolution: {integrity: sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==} dev: true + /@types/jquery@3.5.16: + resolution: {integrity: sha512-bsI7y4ZgeMkmpG9OM710RRzDFp+w4P1RGiIt30C1mSBT+ExCleeh4HObwgArnDFELmRrOpXgSYN9VF1hj+f1lw==} + dependencies: + '@types/sizzle': 2.3.3 + dev: false + /@types/json-schema@7.0.11: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} dev: false @@ -305,6 +314,10 @@ packages: resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==} dev: false + /@types/sizzle@2.3.3: + resolution: {integrity: sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==} + dev: false + /@typescript-eslint/eslint-plugin@5.59.1(@typescript-eslint/parser@5.59.1)(eslint@8.39.0)(typescript@4.9.5): resolution: {integrity: sha512-AVi0uazY5quFB9hlp2Xv+ogpfpk77xzsgsIEWyVS7uK/c7MZ5tw7ZPbapa0SbfkqE0fsAMkz5UwtgMLVk2BQAg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} diff --git a/src/types/globals.d.ts b/src/types/globals.d.ts index ceb161b..b39884f 100644 --- a/src/types/globals.d.ts +++ b/src/types/globals.d.ts @@ -1,4 +1,3 @@ -declare const cloneInto: Function declare const XPCNativeWrapper: any export interface File { isImage: boolean diff --git a/tsconfig.json b/tsconfig.json index d656e5e..bbac8ea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "importHelpers": true, "module": "ES2022", "noImplicitAny": false, "removeComments": true, @@ -7,11 +8,14 @@ "target": "ES2020", "allowJs": true, "checkJs": true, + //TODO: Flip this to true + "strict": false, "noEmit": true, "jsx": "react", "jsxFactory": "h", "jsxFragmentFactory": "hFragment", "types": [ + "@types/jquery", "@violentmonkey/types", "@types/chrome", "ts-node",