diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index e2e6eb1..0000000 --- a/.eslintignore +++ /dev/null @@ -1,11 +0,0 @@ -dist -node_modules -build -tmp -demos -coverage -_archive -*.spec.* -vitest.config.ts -*.md -*.yml diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 735da22..0000000 --- a/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@antfu", - "rules": { - "@typescript-eslint/no-unsafe-argument": 0, - "@typescript-eslint/no-unsafe-assignment": 0, - "@typescript-eslint/no-unsafe-call": 0, - "@typescript-eslint/no-unsafe-member-access": 0, - "@typescript-eslint/no-unsafe-return": 0, - "@typescript-eslint/require-await": 0, - "@typescript-eslint/restrict-template-expressions": 0, - "@typescript-eslint/no-misused-promises": 0 - } -} \ No newline at end of file diff --git a/package.json b/package.json index 805ee2a..ddb9851 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zeed-dom", "type": "module", - "version": "0.11.0", + "version": "0.11.1", "description": "🌱 Lightweight offline DOM", "author": { "name": "Dirk Holtwick", diff --git a/tsconfig.json b/tsconfig.json index fdc8471..4d80c3a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,17 @@ { "compilerOptions": { - "target": "ES2019", + "target": "ES2020", "jsx": "react", "jsxFactory": "h", "jsxFragmentFactory": "Fragment", "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" + "ESNext", + "DOM", + "DOM.Iterable" ], "baseUrl": ".", - "module": "ESNext", - "moduleResolution": "Node", + "module": "ES2020", + "moduleResolution": "Bundler", "resolveJsonModule": true, "types": [ "node", @@ -27,12 +26,12 @@ "isolatedModules": true }, "include": [ - "src/**/*", - "index.ts" + "src/**/*" ], "exclude": [ + "_archive", "node_modules", "dist", - "src/**/*.spec.ts" + "node_modules" ] } diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..46ea07b --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,13 @@ +/// +import { resolve } from 'path' +import { defineConfig } from 'vite' + +export default defineConfig({ + test: { + include: ['./src/**/*.{client,test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], + globals: true, + alias: { + '@/': `${resolve(process.cwd(), 'src')}/`, + }, + }, +})