Skip to content

Commit 4f5a345

Browse files
authored
feat: migrate code base to TypeScript (#175)
1 parent 0ae06f1 commit 4f5a345

37 files changed

+13231
-4696
lines changed

.babelrc

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

.changeset/angry-kiwis-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"pretty-quick": minor
3+
---
4+
5+
feat: migrate code base to TypeScript

.eslintrc.yml

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

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
- name: Install Dependencies
3232
run: yarn --immutable
3333

34+
- name: Build and Test
35+
run: yarn run-s build test
36+
3437
- name: Lint
3538
run: yarn lint
3639
if: matrix.node == 18
3740
env:
3841
EFF_NO_LINK_RULES: true
3942
PARSER_NO_WATCH: true
4043

41-
- name: Build and Test
42-
run: yarn run-s build test
43-
4444
- name: Codecov
4545
uses: codecov/codecov-action@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
dist
22
node_modules
3+
test-dist
34
*.log
45
/.yarn/*
56
!/.yarn/plugins

.lintstagedrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@1stg/lint-staged/tsc')

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
coverage
22
dist
3+
test-dist
34
/.yarn

.simple-git-hooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@1stg/simple-git-hooks')

__mocks__/execa.js renamed to __mocks__/execa.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ const mockStream = () => ({
88
const mockExeca = jest.fn().mockReturnValue({
99
stdout: mockStream(),
1010
stderr: mockStream(),
11+
// eslint-disable-next-line @typescript-eslint/no-empty-function
1112
kill: () => {},
1213
})
1314

1415
const mockExecaSync = jest.fn().mockReturnValue({
1516
stdout: '',
1617
stderr: '',
18+
// eslint-disable-next-line @typescript-eslint/no-empty-function
1719
kill: () => {},
1820
})
1921

20-
module.exports = mockExeca
21-
module.exports.sync = mockExecaSync
22+
export = mockExeca
23+
24+
// @ts-expect-error -- intended
25+
mockExeca.sync = mockExecaSync

__mocks__/prettier.js

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

0 commit comments

Comments
 (0)