mnfst / manifest

A Whole Backend That Fits Into 1 YAML file. ⭐ to support the project !
https://manifest.build
MIT License
875 stars 51 forks source link

Feature/lint #232

Open brunobuddy opened 3 days ago

brunobuddy commented 3 days ago

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:

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:

Check list before submitting

vercel[bot] commented 3 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
manifest-schema ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 10:41am