Skip to content

Commit 0827ec4

Browse files
authored
Upgrade yarn, typescript, and all packages to latest version in range (#8)
* Upgrade yarn and typescript * Run yarn dedupe --strategy highest * skip lib check * Run `yarn upgrade-interactive` and upgrade to latest in range * Run `pre-commit run -a` and clean out generated files * Upgrade prettier and eslint * Use newer node versions on CI * Only use node 18 and 20
1 parent 402da9d commit 0827ec4

File tree

845 files changed

+16625
-16335
lines changed

Some content is hidden

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

845 files changed

+16625
-16335
lines changed

.eslintrc.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ module.exports = {
7777

7878
/**
7979
* We prefer to use types instead of interfaces
80-
*
8180
* @see https://www.notion.so/transcend/Use-Type-instead-of-Interface-b3868d0885724b6894647018323a57b2
8281
*/
8382
'@typescript-eslint/prefer-interface': 0,
@@ -98,7 +97,6 @@ module.exports = {
9897

9998
/**
10099
* We use a custom pre-commit for import orders
101-
*
102100
* @see pre_commit_hooks/ordered_imports.js
103101
*/
104102
'import/order': 0,
@@ -144,22 +142,19 @@ module.exports = {
144142

145143
/**
146144
* Type signatures should be combined if possible:
147-
*
148145
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unified-signatures.md
149146
*/
150147
'@typescript-eslint/unified-signatures': ['error'],
151148

152149
/**
153150
* Group overrides next to each other
154-
*
155151
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md
156152
*/
157153
'@typescript-eslint/adjacent-overload-signatures': ['error'],
158154

159155
/**
160156
* Explicitly specify return types to functions. This improves type safety
161157
* and also allows compiler to optimize
162-
*
163158
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
164159
* @see https://www.notion.so/transcend/4ef10ad243b746d9b2a84f8bb4a1b01a?v=8eb2ce8c21d54b43a916e7f93a563950&p=36b3bd33e054443084d2759537e6423b
165160
*/

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest]
21-
node-version: [12.x, 14.x]
21+
node-version: [18.x, 20.x]
2222
steps:
2323
- uses: actions/checkout@v2
2424
- name: Use Node.js ${{ matrix.node-version }}
2525
uses: actions/setup-node@v1
2626
with:
2727
node-version: ${{ matrix.node-version }}
28+
- run: npm install -g "[email protected]"
2829
- run: yarn test
2930

3031
run-pre-commits:
@@ -34,10 +35,11 @@ jobs:
3435
with:
3536
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
3637
- uses: actions/setup-python@v2
37-
- name: Use Node.js 14.x
38+
- name: Use Node.js 18.x
3839
uses: actions/setup-node@v1
3940
with:
40-
node-version: 14.x
41+
node-version: 18.x
42+
- run: npm install -g "[email protected]"
4143
- uses: pre-commit/[email protected]
4244
with:
4345
extra_args: --source ${{ github.event.pull_request.base.sha || 'HEAD~1' }} --origin ${{ github.event.pull_request.head.sha || 'HEAD' }}
@@ -46,11 +48,12 @@ jobs:
4648
runs-on: ubuntu-latest
4749
steps:
4850
- uses: actions/checkout@v2
49-
- name: Use Node.js 14.x
51+
- name: Use Node.js 18.x
5052
uses: actions/setup-node@v1
5153
with:
52-
node-version: 14.x
53-
- run: yarn pnpify depcheck
54+
node-version: 18.x
55+
- run: npm install -g "[email protected]"
56+
- run: yarn depcheck
5457

5558
build-to-npm:
5659
if: github.ref == 'refs/heads/main'
@@ -64,7 +67,7 @@ jobs:
6467
uses: actions/checkout@v2
6568
- uses: actions/setup-node@v2
6669
with:
67-
node-version: '14.x'
70+
node-version: '18.x'
6871
- name: Configure NPM authentication
6972
run: |
7073
yarn config set npmAlwaysAuth true
@@ -84,7 +87,7 @@ jobs:
8487
uses: actions/checkout@v2
8588
- uses: actions/setup-node@v2
8689
with:
87-
node-version: '14.x'
90+
node-version: '18.x'
8891
- name: Configure Github Packages authentication
8992
run: |
9093
yarn config set npmAlwaysAuth true

0 commit comments

Comments
 (0)