TheAlgorithms / JavaScript

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
https://the-algorithms.com/language/javascript
GNU General Public License v3.0
31.77k stars 5.44k forks source link

chore: use `check-style` in #1630

Closed vil02 closed 4 months ago

vil02 commented 4 months ago

Open in Gitpod know more

Describe your change:

Currently in pre-commit npm run style is used. This formats the files but the changes are not added to the commit (and the command is successful). I would suggest to use npm run check-style, which fill fail, if there are some files requiring reformatting. It fits to the logic behind npm run test.

Checklist: