cucumber / vscode

Official Visual Studio Code Extension for Cucumber
MIT License
61 stars 16 forks source link

Linting pre-commit hook #203

Closed kieran-ryan closed 5 months ago

kieran-ryan commented 5 months ago

🤔 What's changed?

Introduced linting pre-commit hook.

⚡️ What's your motivation?

Align with cucumber/language-server and cucumber/language-server; with a pre-commit hook to automate linting checks on each commit.

Remove pretty-quick dependency as it is unmaintained and must be manually run on staged changes; whereas this is automated through the introduction of a pre-commit hook (through husky) and lint-staged.

To test, modify files in the src directory and run:

git add src
npx lint-staged

You should observe an output similar to the following:

✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...

🏷️ What kind of change is this?

📋 Checklist: