Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installed "lint-staged" to run linters against staged Git files to prevent to add code that violates any style guide into the code base. 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 against `*.{js,json,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 against `*.{js,json}` to ensure all JavaScript files are compliant to the style guide after being formatted with Prettier. 3. `remark --no-stdout` - Run remark-lint 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 Resolves GH-133
- Loading branch information