StevensSEC / stevens-web-extension

A portable, centralized hub for collecting, analyzing, and presenting data for Stevens students.
GNU General Public License v3.0
6 stars 0 forks source link

[CI] Configure ESLint and Husky #6

Closed adapap closed 4 years ago

adapap commented 4 years ago

ESLint and Husky are both Node packages (libraries that can be included in your JavaScript projects). ESLint is a linter, which checks your code for stylistic and formatting discrepancies. Husky is a CI (continuous integration) tool that makes it easy to setup Git hooks through the package.json file part of modern JS projects.

The idea is to configure ESLint to match a desired code format, and then use the precommit hook to make sure that local changes still follow the code format. A subsequent use can be to use the prepush hook to make sure all builds/tests are passing before submitting a pull request/merge.