This PR adds Husky to the monorepo to implement an automatic linting script that triggers on commit.
The "lint" script has been implemented on the smaller packages and will be implemented on the bigger ones soon. This is the current situation on how the linting is implemented:
Packages:
[ ] add-manifest
[ ] core/admin
[x] core/helpers
[x] core/json-schema
[x] core/types
[ ] core/manifest
[ ] js-sdk
Related Issues
192
How can it be tested?
From the root run:
npm run lint
It should pass.
Now try to add a "wrong" code:
// packages/core/helpers/src/index.ts
[...]
// Replace the "string" type by "any" line 50
export function kebabize(str: any): string {
[...]
And run again:
npm run lint
This time it should fail
Impacted packages
Check the NPM packages that require a new publication or release:
Description
This PR adds Husky to the monorepo to implement an automatic linting script that triggers on commit.
The "lint" script has been implemented on the smaller packages and will be implemented on the bigger ones soon. This is the current situation on how the linting is implemented:
Packages:
Related Issues
192
How can it be tested?
From the root run:
It should pass.
Now try to add a "wrong" code:
And run again:
This time it should fail
Impacted packages
Check the NPM packages that require a new publication or release:
Check list before submitting