Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR1
PR: #77
chore(regex): fixed parsing for CRLF
fix for sometimes changing post from github directly
which doesnt have auto trim whitespaces while saving file
PR2
PR: #76
fix: types node
install
@types/node
instead overridetype: node
. this method will fixed typescript build for both single project or workspaces/monorepo project.refactor: enable
esModuleInterop
the ES6 modules spec states that a namespace import (
import * as x
) can only be an object, by having TypeScript treating it the same as= require("x")
then TypeScript allowed for the import to be treated as a function and be callable. That's not valid according to the spec.while accurate to the ES6 modules spec, most libraries with CommonJS/AMD/UMD modules didn't conform as strictly as TypeScript's implementation.
Turning on
esModuleInterop
will fix both of these problems in the code transpiled by TypeScript. see morefix: failed build caused by missing lib
Skip type checking of declaration files from
node_modules
. This can save time during compilation at the expense of type-system accuracy.chore: separate result type and make
options
as optionalseparate result type
optional
options
by adding defaultoptions
anempty object
docs: add JSDoc
refactor: implement
lint-staged
andhusky
to automatically fix code style before commited (temporary disabled)
new changes
prettier
fromlint-staged
confighusky
andlint-staged
(we can manually activate or deactivate husky)