Skip to content

Commit 3249927

Browse files
committed
update .markdownlint.json, CONTRIBUTING.md, README.md and package.json
1 parent 13c870e commit 3249927

File tree

4 files changed

+37
-40
lines changed

4 files changed

+37
-40
lines changed

.markdownlint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"MD013": false,
3-
"default": true
2+
"MD013": false,
3+
"default": true
44
}

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Please take a moment to review this document to understand our contribution guid
2222

2323
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 [YOUR_PROJECT_CONTACT_EMAIL].
2424

25-
2625
## How to Contribute
2726

2827
### Reporting Bugs

README.md

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
[![Codecov](https://codecov.io/gh/YOUR_GITHUB_USERNAME/YOUR_REPO_NAME/branch/main/graph/badge.svg?token=YOUR_CODECOV_TOKEN)](https://codecov.io/gh/YOUR_GITHUB_USERNAME/YOUR_REPO_NAME)
44

5-
6-
75
A template repository for modern JavaScript projects with pre-configured linting, formatting, testing, and CI/CD using GitHub Actions.
86

97
This template provides a solid foundation for any new JavaScript project, ensuring code quality and consistency from the start.
@@ -12,14 +10,14 @@ This template provides a solid foundation for any new JavaScript project, ensuri
1210

1311
This template comes pre-configured with a suite of modern, industry-standard tools to ensure your project maintains high code quality.
1412

15-
| Tool | Purpose |
16-
| :-------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
17-
| **ESLint** | Statically analyzes your code to quickly find and fix problems. It's configured with recommended rules to enforce best practices. |
18-
| **Prettier** | An opinionated code formatter that enforces a consistent style across your entire codebase, eliminating arguments over code style. |
19-
| **Jest** | A delightful JavaScript Testing Framework with a focus on simplicity. It's set up and ready for you to write unit and integration tests. |
20-
| **markdownlint** | A linter for Markdown files to enforce consistent style and catch common errors in documentation. |
21-
| **Husky** | Manages Git hooks to make it easy to run scripts at specific stages, like before a commit. |
22-
| **lint-staged** | Works with Husky to run linters and formatters on your staged files _before_ they are committed, ensuring no bad code gets in. |
13+
| Tool | Purpose |
14+
| :----------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
15+
| **ESLint** | Statically analyzes your code to quickly find and fix problems. It's configured with recommended rules to enforce best practices. |
16+
| **Prettier** | An opinionated code formatter that enforces a consistent style across your entire codebase, eliminating arguments over code style. |
17+
| **Jest** | A delightful JavaScript Testing Framework with a focus on simplicity. It's set up and ready for you to write unit and integration tests. |
18+
| **markdownlint** | A linter for Markdown files to enforce consistent style and catch common errors in documentation. |
19+
| **Husky** | Manages Git hooks to make it easy to run scripts at specific stages, like before a commit. |
20+
| **lint-staged** | Works with Husky to run linters and formatters on your staged files _before_ they are committed, ensuring no bad code gets in. |
2321
| **GitHub Actions** | Automates your workflow with two pre-configured CI pipelines for validating code on `main` and all other feature branches. |
2422

2523
## Getting Started
@@ -40,11 +38,13 @@ This template comes pre-configured with a suite of modern, industry-standard too
4038
cd your-new-repo
4139
```
4240

43-
2. Install dependencies:
44-
```bash
45-
npm install
46-
```
47-
This will install all dependencies and also run the `prepare` script, which sets up the Husky pre-commit hooks automatically.
41+
2. Install dependencies:
42+
43+
```bash
44+
npm install
45+
```
46+
47+
This will install all dependencies and also run the `prepare` script, which sets up the Husky pre-commit hooks automatically.
4848

4949
3. Start coding!
5050

@@ -56,8 +56,6 @@ After creating your repository from this template, be sure to:
5656
2. **Update `LICENSE`**: Modify the `[year]` and `[fullname]` to reflect your project's ownership.
5757
3. **Update `CODE_OF_CONDUCT.md` and `CONTRIBUTING.md`**: Replace the `[YOUR_PROJECT_CONTACT_EMAIL]` placeholder with a valid project contact email.
5858

59-
60-
6159
## Available Scripts
6260

6361
In the project directory, you can run:
@@ -91,14 +89,12 @@ Both workflows perform the following steps across multiple Node.js versions (18.
9189

9290
1. **Install dependencies** using `npm ci` for fast, reliable installs.
9391
2. **Lint code** with `npm run lint`.
94-
3. **Lint Markdown files** with `npm run lint:md`.
95-
4. **Check code formatting** with `npm run format`.
96-
5. **Check Markdown formatting** with `npm run format:md`.
97-
6. **Check for broken links** in Markdown with `npm run check:links`.
98-
7. **Audit for vulnerabilities** with `npm audit --production`.
99-
8. **Run tests** with `npm test`.
100-
101-
92+
3. **Lint Markdown files** with `npm run lint:md`.
93+
4. **Check code formatting** with `npm run format`.
94+
5. **Check Markdown formatting** with `npm run format:md`.
95+
6. **Check for broken links** in Markdown with `npm run check:links`.
96+
7. **Audit for vulnerabilities** with `npm audit --production`.
97+
8. **Run tests** with `npm test`.
10298

10399
## Customization
104100

@@ -117,18 +113,20 @@ This template is configured to generate code coverage reports using Jest. The re
117113
To get a dynamic code coverage badge like the one at the top of this `README.md`, you can integrate with a service like Codecov or Coveralls.
118114

119115
**Steps to set up Codecov (example):**
120-
1. Sign up for Codecov with your GitHub account.
121-
2. Add your repository to Codecov.
122-
3. Codecov will provide you with a `CODECOV_TOKEN`. Add this token as a secret in your GitHub repository settings (e.g., `CODECOV_TOKEN`).
123-
4. Add a step to your CI workflow (`.github/workflows/ci.yml`) to upload the coverage report to Codecov. This typically involves adding a step like:
124-
```yaml
125-
- name: Upload coverage to Codecov
126-
uses: codecov/codecov-action@v4
127-
with:
128-
token: ${{ secrets.CODECOV_TOKEN }}
129-
```
130-
5. Update the badge URL in `README.md` with your specific repository details and token (if required by Codecov for public repos, though often not for public repos).
131116

117+
1. Sign up for Codecov with your GitHub account.
118+
2. Add your repository to Codecov.
119+
3. Codecov will provide you with a `CODECOV_TOKEN`. Add this token as a secret in your GitHub repository settings (e.g., `CODECOV_TOKEN`).
120+
4. Add a step to your CI workflow (`.github/workflows/ci.yml`) to upload the coverage report to Codecov. This typically involves adding a step like:
121+
122+
```yaml
123+
- name: Upload coverage to Codecov
124+
uses: codecov/codecov-action@v4
125+
with:
126+
token: ${{ secrets.CODECOV_TOKEN }}
127+
```
128+
129+
5. Update the badge URL in `README.md` with your specific repository details and token (if required by Codecov for public repos, though often not for public repos).
132130

133131
## Contributing
134132

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lint:md": "markdownlint --ignore-path .gitignore .",
1515
"lint:md:fix": "markdownlint --ignore-path .gitignore --fix .",
1616
"audit:ci": "npm audit --production",
17-
"check:links": "markdown-link-check '**/*.md'",
17+
"check:links": "markdown-link-check '**/*.md'",
1818
"prepare": "husky install"
1919
},
2020
"keywords": [

0 commit comments

Comments
 (0)