From fe81602f2320c63db24294680413df18a6a228e8 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 14 Mar 2022 16:53:53 +0530 Subject: [PATCH] Cleanup Tsconfig --- package.json | 4 ++-- tsconfig.json | 32 +------------------------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 149eb5f7..87f27992 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "dev": "svelte-kit dev --host 0.0.0.0", "build": "svelte-kit build", "preview": "svelte-kit preview", - "lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", - "lint:fix": "prettier --write --plugin-search-dir=. . && eslint --fix --ignore-path .gitignore .", + "lint": "prettier --check --plugin-search-dir=. .;eslint --ignore-path .gitignore .", + "lint:fix": "prettier --write --plugin-search-dir=. .;eslint --fix --ignore-path .gitignore .", "format": "prettier --write --plugin-search-dir=. .", "pre-commit": "lint-staged", "postinstall": "husky install", diff --git a/tsconfig.json b/tsconfig.json index b206eb3d..af0b0794 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,41 +1,11 @@ { - "compilerOptions": { - "moduleResolution": "node", - "module": "es2020", - "lib": ["es2020", "ESNext", "DOM.Iterable", "DOM"], - "target": "es2019", - /** - svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript - to enforce using \`import type\` instead of \`import\` for Types. - */ - "importsNotUsedAsValues": "error", - "isolatedModules": true, - "resolveJsonModule": true, - /** - To have warnings/errors of the Svelte compiler at the correct position, - enable source maps by default. - */ - "sourceMap": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "baseUrl": ".", - "allowJs": true, - "checkJs": true, - "paths": { - "$lib": ["src/lib"], - "$lib/*": ["src/lib/*"] - } - }, "include": [ "src/**/*.d.ts", - "src/**/*.js", "src/**/*.ts", "src/**/*.svelte", "cypress/**/*.ts", "cypress/**/*.js", - "static/**/*.js", - "src/pako.mts" + "static/**/*.js" ], "extends": "./.svelte-kit/tsconfig.json" }