ipfs / ipfs-docs

📚IPFS documentation platform
https://docs.ipfs.tech
294 stars 390 forks source link

Adds pre-commit linters #1672

Closed ElPaisano closed 10 months ago

ElPaisano commented 10 months ago

Describe your changes

This PR adds a script (and its associated packages, configs, etc.) that runs automatically on local git commit and checks for:

What issue(s) does this address?

How to test

  1. Pull down this branch.
  2. Make a change to a markdown file. Ideally, make an intentional error so that the full script is triggered.
  3. git add the file
  4. git commit -m -> This should trigger the script
  5. Repeat steps 2-4 until the pre-commit check passes.