Skip to content

Conversation

@bdbch
Copy link
Member

@bdbch bdbch commented Nov 30, 2024

This PR adds nano-staged to run the biome formatter before a commit is made to avoid unnecessary CI failures because of unformatted code.

It also moves up eslint from the package into the project root to allow project wide linting

Tried to get eslint running too but the task fails when used with eslint --fix -- as it doesn't want to commit empty changes?

@netlify
Copy link

netlify bot commented Nov 30, 2024

Deploy Preview for tsky canceled.

Name Link
🔨 Latest commit ca6d6dd
🔍 Latest deploy log https://app.netlify.com/sites/tsky/deploys/674adf11eb085c0008419635

@bdbch bdbch changed the title Add linting & formatting on staged files before commit chore: add linting & formatting on staged files before commit Nov 30, 2024
@bdbch bdbch merged commit 9e3ba8d into tsky-dev:main Nov 30, 2024
6 checks passed
@bdbch bdbch deleted the lint-staged-files branch November 30, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant