-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add types This module exports a `.path` function so add types to the module so we can use it without needing to add `@ts-ignore`s everywhere. * chore: add typecheck step to ci
- Loading branch information
1 parent
1d78c3e
commit 2074599
Showing
7 changed files
with
126 additions
and
8 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 |
---|---|---|
|
@@ -15,5 +15,6 @@ jobs: | |
with: | ||
node-version: 14.x | ||
- run: npm install | ||
- uses: gozala/[email protected] | ||
- run: npm run build --if-present | ||
- run: npm test |
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
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,44 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
// project options | ||
"allowJs": true, | ||
"checkJs": true, | ||
"target": "ES2019", | ||
"lib": [ | ||
"ES2019", | ||
"ES2020.Promise", | ||
"ES2020.String", | ||
"ES2020.BigInt", | ||
"DOM", | ||
"DOM.Iterable" | ||
], | ||
"noEmitOnError": true, | ||
"incremental": true, | ||
"composite": true, | ||
"isolatedModules": true, | ||
"removeComments": false, | ||
// module resolution | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
// linter checks | ||
"noImplicitReturns": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": false, | ||
// advanced | ||
"importsNotUsedAsValues": "error", | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"stripInternal": true, | ||
"resolveJsonModule": true, | ||
"outDir": "dist" | ||
}, | ||
"include": [ | ||
"src", | ||
"package.json" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |