Skip to content

Commit 6d8ed14

Browse files
scagoodaladdin-add
andauthoredApr 7, 2024··
feat: typescript (jsdoc) checking and definition generation (#169)
* chore: add some low hanging fruit types * chore: small steps * chore: Simplify check-existence * fix: All types in the utils directory * fix(prefer-promises): missing TraceMap type * fix(hashbang): Add missing types * fix: Add types for "process-exit-as-throw" * chore: unifi TraceMap * feat: Types for lib/rules * Update tsconfig.json Co-authored-by: Sebastian Good <2230835+scagood@users.noreply.github.com> * ci: Add tsc compile on pack and test * ci: Export types in package.json * ci: run tests and linting once * chore: Remove all "{Object}" from "@typedef" * fix: Remove typecast infavour of union a discriminator check * chore: Remove more unneed casting * fix: Better types from JSON.parse * chore: 1 typedef per doc comment * fix: dont cast ErrnoException * feat: better "TraceMap" types * chore: Add comment for the "ts-expect-error" --------- Co-authored-by: 唯然 <weiran.zsd@outlook.com>
1 parent 5e82d7f commit 6d8ed14

File tree

133 files changed

+2801
-959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+2801
-959
lines changed
 

‎.github/workflows/CI.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 20.x
25-
- name: Install Packages
26-
run: npm install
27-
- name: Lint
28-
run: npm run -s lint
25+
- run: npm install
26+
- run: npm run -s lint
27+
- run: npm run -s test:types
2928

3029
test:
3130
name: Test
@@ -64,7 +63,6 @@ jobs:
6463
- name: Install Packages
6564
run: npm install
6665
- name: Install ESLint ${{ matrix.eslint }}
67-
run: |
68-
npm install --no-save --force eslint@${{ matrix.eslint }}
66+
run: npm install --no-save --force eslint@${{ matrix.eslint }}
6967
- name: Test
70-
run: npm run -s test:ci
68+
run: npm run -s test:tests

‎.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
/test.js
66
.eslintcache
77
.vscode
8-
.idea/
8+
.idea/
9+
10+
types/

0 commit comments

Comments
 (0)
Please sign in to comment.