Commit 2696968
committed
Install and configure
Installed `lint-staged` (1) to run linters against staged Git files to
prevent to add code that violates any style guide into the code base.
The `lint-staged.config.js` configuration file 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 (GH-37) against
`*.{js,json,md,yml}` to ensure all files are formatted correctly.
The `--list-different` prints the found files that are not conform to
the Prettier configuration.
2. `remark --no-stdout` - Run remark-lint (GH-36) 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
Epic: GH-33
Depends on GH-36 GH-37 GH-47 GH-49
Blocks GH-45
Resolves GH-44lint-staged
1 parent be3e59a commit 2696968
3 files changed
+867
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments