Skip to content

Commit

Permalink
Bump all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
dmattia authored Dec 5, 2023
1 parent 16fe222 commit e1d28b1
Show file tree
Hide file tree
Showing 29 changed files with 15,011 additions and 16,411 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ module.exports = {

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

/**
* We use a custom pre-commit for import orders
*
* @see pre_commit_hooks/ordered_imports.js
*/
'import/order': 0,
Expand Down Expand Up @@ -144,22 +142,19 @@ module.exports = {

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

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

/**
* Explicitly specify return types to functions. This improves type safety
* and also allows compiler to optimize
*
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
* @see https://www.notion.so/transcend/4ef10ad243b746d9b2a84f8bb4a1b01a?v=8eb2ce8c21d54b43a916e7f93a563950&p=36b3bd33e054443084d2759537e6423b
*/
Expand Down
36 changes: 16 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3.1.1
with:
node-version: '14.17.3'
- run: npm install -g "yarn@1.22.5"
shell: bash
- uses: nick-fields/retry@v2
with:
timeout_minutes: 6
max_attempts: 3
retry_on: error
command: yarn install --immutable
node-version: '20.9.0'
- run: yarn
- name: Build the typescript code
run: yarn build
- uses: actions/upload-artifact@main
Expand All @@ -29,24 +22,26 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x, 14.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test

run-depcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn pnpify depcheck
node-version: 20.x
- run: yarn
- run: yarn depcheck

run-pre-commits:
runs-on: ubuntu-latest
Expand All @@ -55,13 +50,12 @@ jobs:
with:
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
- uses: actions/setup-python@v2
- name: Use Node.js 14.x
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: pre-commit/action@v2.0.2
with:
extra_args: --source ${{ github.event.pull_request.base.sha || 'HEAD~1' }} --origin ${{ github.event.pull_request.head.sha || 'HEAD' }}
node-version: 20.x
- run: yarn
- uses: pre-commit/action@v3.0.0

build-to-npm:
if: github.ref == 'refs/heads/main'
Expand All @@ -76,7 +70,8 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '20.x'
- run: yarn
- name: Configure NPM authentication
run: |
yarn config set npmAlwaysAuth true
Expand All @@ -97,7 +92,8 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '20.x'
- run: yarn
- name: Configure Github Packages authentication
run: |
yarn config set npmAlwaysAuth true
Expand Down
Loading

0 comments on commit e1d28b1

Please sign in to comment.