diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 8ab6533..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": [ "@veritem" ], - "rules": { - "indent": [ 0, "tab" ], - "no-case-declarations": 0, - "no-tabs": "off", - "no-mixed-spaces-and-tabs": "off", - "vitest/unbound-method": "off" - } -} - diff --git a/package.json b/package.json index 08f8eba..314a571 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ }, "peerDependencies": { "eslint": ">= 8.57.0", - "vitest": "*" + "vitest": "*", + "typescript": ">= 5.0.0" }, "peerDependenciesMeta": { "vitest": { diff --git a/tsconfig.json b/tsconfig.json index 0f87a04..7266f22 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,16 @@ { "compilerOptions": { - "target": "es2020", + "target": "es5", "lib": ["esnext"], "module": "esnext", "moduleResolution": "Bundler", - "resolveJsonModule": true, "types": [ "vitest/globals" ], "strict": true, - "strictNullChecks": true, - "esModuleInterop": true, - "skipDefaultLibCheck": true, - "skipLibCheck": true - }, + "sourceMap": true + }, "include": [ - "src" + "src/**/*.ts" ] } diff --git a/unbuild.config.ts b/unbuild.config.ts index 08b1331..316e536 100644 --- a/unbuild.config.ts +++ b/unbuild.config.ts @@ -9,5 +9,6 @@ export default defineBuildConfig({ esbuild: { minify: true } - } + }, + peerDependencies: ["typescript"] })