-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use pnpm, modernize things (#1033)
- Loading branch information
1 parent
964876f
commit cc0fec1
Showing
30 changed files
with
5,611 additions
and
5,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @type {import('eslint').Linter.Config} | ||
**/ | ||
|
||
module.exports = { | ||
extends: [ | ||
'@bjerk/eslint-config/base', | ||
'@bjerk/eslint-config/typescript', | ||
// '@bjerk/eslint-config/import', | ||
// '@bjerk/eslint-config/prettier', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.test.ts', '*.test.tsx'], | ||
rules: { | ||
// TODO: Improve tests and remove these rules | ||
'@typescript-eslint/no-unsafe-assignment': 'warn', | ||
'@typescript-eslint/no-unsafe-member-access': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-unsafe-argument': 'warn', | ||
'@typescript-eslint/no-floating-promises': 'warn', | ||
'no-restricted-globals': 'warn', | ||
'@typescript-eslint/no-unsafe-call': 'warn', | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release to NPM | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node LTS ✨ | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
registry-url: https://registry.npmjs.org | ||
cache: pnpm | ||
|
||
- name: Install dependencies 📦️ | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build 🔨 | ||
run: pnpm build | ||
|
||
- uses: simenandre/publish-with-pnpm@v1 | ||
with: | ||
npm-auth-token: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.