Skip to content

Commit da4bc38

Browse files
committed
feat: add TypeScript support and testing setup
- Introduced TypeScript configuration files (tsconfig.json, tsconfig.build.json) - Added Vitest configuration for testing (vitest.config.ts) - Created initial test file (index.test.ts) with a basic test case - Updated package.json scripts for TypeScript build and testing - Refactored ESLint configuration to support TypeScript - Implemented main action logic in TypeScript (index.ts)
1 parent 888da85 commit da4bc38

File tree

10 files changed

+8671
-11064
lines changed

10 files changed

+8671
-11064
lines changed

.eslintrc.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
{
2+
"parser": "@typescript-eslint/parser",
23
"extends": [
34
"airbnb",
5+
"plugin:@typescript-eslint/recommended",
46
"plugin:prettier/recommended"
57
],
8+
"plugins": ["@typescript-eslint"],
69
"env": {
710
"commonjs": true,
811
"es6": true,
912
"node": true
1013
},
1114
"parserOptions": {
12-
"ecmaVersion": 2018
15+
"ecmaVersion": 2020,
16+
"sourceType": "module"
1317
},
14-
"ignorePatterns": ["example/*"]
18+
"ignorePatterns": ["example/*", "dist/*", "test/*"],
19+
"rules": {
20+
"import/extensions": [
21+
"error",
22+
"ignorePackages",
23+
{
24+
"ts": "never",
25+
"tsx": "never"
26+
}
27+
],
28+
"import/no-unresolved": "off"
29+
}
1530
}

index.test.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

now.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)