Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement "lint-staged" configuration file
The configuration file `lint-staged.config.js` (1) has been placed in the project root and includes the commands that should be run for matching file extensions (globs). It includes at least the three following entries with the same order as listed here: 1. `prettier --list-different` - Run Prettier (#16) against `*.{js,json,jsx,mdx,yml}` to ensure all files are formatted correctly. The `--list-different` flag prints the found files that are not conform to the Prettier configuration. 2. `eslint` - Run ESLint (#15) against `*.{js,jsx}` to ensure all JavaScript files are compliant to the style guide after being formatted with Prettier. 3. `remark --no-stdout` - Run remark-lint (#14) against `*.md` to ensure all Markdown files are compliant to the style guide. The `--no-stdout` flag suppresses the output of the parsed file content. References: (1) https://github.com/okonet/lint-staged GH-17
- Loading branch information