Skip to content

Commit f234e81

Browse files
authored
Merge pull request #7 from ioncakephper:feature/lint-markdown
Enhance CI workflow and Markdown linting support
2 parents 33047e9 + 9cbac7d commit f234e81

File tree

7 files changed

+1384
-67
lines changed

7 files changed

+1384
-67
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ jobs:
2727
run: npm run lint
2828
- name: Check formatting
2929
run: npm run format
30+
- name: Lint Markdown files
31+
run: npm run lint:md
32+
- name: Check Markdown formatting
33+
run: npm run format:md
3034
- name: Run tests
3135
run: npm test

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
shytiger@yahoo.com
63+
<shytiger@yahoo.com>
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Please take a moment to review this document to understand our contribution guid
2020

2121
## Code of Conduct
2222

23-
This project and everyone participating in it is governed by the [js-quality-starter Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to shytiger@yahoo.com.
23+
This project and everyone participating in it is governed by the [js-quality-starter Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to <shytiger@yahoo.com>.
2424

2525
## How to Contribute
2626

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ In the project directory, you can run:
5656
- `npm run lint:fix`: Lints and automatically fixes fixable issues.
5757
- `npm run format`: Checks for formatting issues with Prettier.
5858
- `npm run format:fix`: Formats all supported files with Prettier.
59+
- `npm run format:md`: Checks for formatting issues with Prettier for Markdown files.
60+
- `npm run format:md:fix`: Formats all Markdown files with Prettier.
5961

6062
## How It Works
6163

6264
### Pre-commit Hooks
6365

64-
This project uses `Husky` and `lint-staged` to run `eslint --fix` and `prettier --write` on staged `.js` files every time you make a commit. This automated quality gate ensures that no code that violates the style guide ever gets into the codebase.
66+
This project uses `Husky` and `lint-staged` to run `eslint --fix`, `prettier --write` (for both code and Markdown), and `markdownlint --fix` on staged files every time you make a commit. This automated quality gate ensures that no code or documentation that violates the style guide ever gets into the codebase.
6567

6668
If a file has linting or formatting errors, the tools will attempt to fix them automatically. If they can, the fixed code is what gets committed. If they can't, the commit is aborted so you can fix the issues manually.
6769

@@ -76,8 +78,9 @@ Both workflows perform the following steps across multiple Node.js versions (18.
7678

7779
1. **Install dependencies** using `npm ci` for fast, reliable installs.
7880
2. **Lint code** with `npm run lint`.
79-
3. **Check formatting** with `npm run format`.
80-
4. **Run tests** with `npm test`.
81+
3. **Check Markdown formatting** with `npm run format:md`.
82+
4. **Check formatting** with `npm run format`.
83+
5. **Run tests** with `npm test`.
8184

8285
## Customization
8386

0 commit comments

Comments
 (0)