-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Individual functions are not exported (#36)
eslint 9 nvm Semantic release wireit tshy Test on current node versions Package export individual functions
- Loading branch information
1 parent
187bdc2
commit 316690e
Showing
98 changed files
with
3,292 additions
and
9,050 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ runs: | |
- uses: google/wireit@setup-github-actions-caching/v2 | ||
|
||
- run: npm ci | ||
shell: bash | ||
shell: bash |
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,47 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- next | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-node | ||
- run: npm run lint | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-node | ||
- run: npm run build | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
version: [18, 20, 22] | ||
name: Test on node v${{ matrix.version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
cache: npm | ||
|
||
- uses: google/wireit@setup-github-actions-caching/v2 | ||
- run: npm ci | ||
- run: npm run test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ jobs: | |
uses: cycjimmy/[email protected] | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
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 @@ | ||
lts/iron |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ plugins: | |
- assets: | ||
- CHANGELOG.md | ||
- package.json | ||
- package-lock.json | ||
- package-lock.json |
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,68 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintPluginImportX from 'eslint-plugin-import-x'; | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
import globals from 'globals'; | ||
import jest from 'eslint-plugin-jest'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ['dist/**/*.*', '.tshy/**/*.*', '.wireit/**/*.*'] | ||
}, | ||
|
||
eslint.configs.recommended, | ||
|
||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
|
||
eslintPluginImportX.flatConfigs.recommended, | ||
eslintPluginImportX.flatConfigs.typescript, | ||
|
||
{ | ||
rules: { | ||
'import-x/order': 'error', | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/no-unnecessary-condition': 'off', | ||
'import-x/no-named-as-default-member': 'off', | ||
'@typescript-eslint/unified-signatures': 'off', | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
'@typescript-eslint/no-unnecessary-type-parameters': 'off' | ||
} | ||
}, | ||
|
||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
allowDefaultProject: ['*.js', '*.cjs'], | ||
defaultProject: 'tsconfig.json' | ||
}, | ||
tsconfigRootDir: import.meta.dirname | ||
}, | ||
globals: globals.node | ||
} | ||
}, | ||
|
||
eslintPluginPrettierRecommended, | ||
|
||
{ | ||
files: ['**/*.js'], | ||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off' | ||
} | ||
}, | ||
|
||
{ | ||
files: ['**/*.spec.*', '**/jest.*'], | ||
plugins: { jest: jest }, | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
...globals.node, | ||
...jest.environments.globals.globals | ||
} | ||
} | ||
} | ||
); |
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,14 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
roots: ['<rootDir>/src'], | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.(t|j)sx?$': '@swc/jest' | ||
}, | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1' | ||
}, | ||
extensionsToTreatAsEsm: ['.ts'] | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.