Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(ensure): remove rimraf dep and clean script * chore(ensure): add typescript and jest config files * chore(ensure): add jest, typescript, ts-jest devdependencies * refactor(ensure): port enum to ts * refactor(ensure): port enum tests to ts * refactor(ensure): make first param to enum non-optional and update test First param to enum (`value`) was earlier optional, which kept the tests easy. But user should be discouraged to use this edge case, so it is now required. In test, the function is typecasted to allow testing the edge case * refactor(ensure): port max-length and its tests to ts * refactor(ensure): port max-line-length and its tests to ts * refactor(ensure): port min-length and its tests to ts * refactor(ensure): port not-empty and its tests to ts * refactor(ensure): port case and its tests to ts * refactor(ensure): port index(.js) and its tests to ts Also updated globby to latest, as it has typescript definition files. * refactor(ensure): add return type to matcher functions * test(ensure): add test for case matching against invalid case name * build(ensure): replace ava config and dependencies with ts 1 Remove ava config and deps from package.json 2 Change ava test script with typescript and jest commands * chore: update yarn lock due to @commitlint/ensure dep changes
- Loading branch information