Documentation
Documentation copied to clipboard
Git-hooks for Doc Repo
Feature
It would be helpful to have the Docs Repo run some git-hooks on commit, to standardize files on-commit and enforce a consistent formatting across all files. Ill provide a list of suggestions, but ultimately the feature's goal is to auto format consistent rules across the repo.
Suggestions
- husky Not used, but would run/install githooks
- eslint Not used, but could be used for TS/JS files and other plugins
- eslint-plugin-react Not used, but could be used for React
- markdown lint Currently used, but could run in the hook to lint markdown
- prettier Current used, but could run in the hook to format all files
- stylelint Not used, but could be used for scss
- lint-staged Not used, but could be used to run eslint against staged files