Skip to content

Commit dc77563

Browse files
marioneblarmano2
andauthored
build: run prettier on everything (conventional-changelog#962)
* build: run prettier on everything * build: use prettier when any eligible file has changed * docs: fill list to protect against prettier garbling empty items * build: ignore changelog files * docs: avoid garbling example values * docs: avoid garbling example values * chore: add new reference Co-Authored-By: Armano <[email protected]> * style: apply autoformatting Co-authored-by: Armano <[email protected]>
1 parent b5ba369 commit dc77563

File tree

83 files changed

+1473
-1829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1473
-1829
lines changed

.devcontainer/devcontainer.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "commitlint-dev",
3-
"dockerComposeFile": ["../docker-compose.yml"],
4-
"service": "commitlint",
5-
"workspaceFolder": "/root/repo",
6-
"shutdownAction": "stopCompose",
7-
"extensions": [
8-
"editorconfig.editorconfig",
9-
"ms-vsliveshare.vsliveshare-pack",
10-
"ms-azuretools.vscode-docker",
11-
"esbenp.prettier-vscode"
12-
]
2+
"name": "commitlint-dev",
3+
"dockerComposeFile": ["../docker-compose.yml"],
4+
"service": "commitlint",
5+
"workspaceFolder": "/root/repo",
6+
"shutdownAction": "stopCompose",
7+
"extensions": [
8+
"editorconfig.editorconfig",
9+
"ms-vsliveshare.vsliveshare-pack",
10+
"ms-azuretools.vscode-docker",
11+
"esbenp.prettier-vscode"
12+
]
1313
}

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ insert_final_newline = true
44
trim_trailing_whitespace = true
55
indent_style = tab
66

7-
[{.*rc,*.yml,*.md,package.json,lerna.json,tsconfig.json,tsconfig.*.json,*.svg}]
7+
[{.*rc,*.yml,*.md,*.json,*.svg}]
88
indent_style = space
99

1010
[*.md]

.github/CODE_OF_CONDUCT.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

.github/CONTRIBUTING.md

+29-24
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,57 @@ Yeay! You want to contribute to commitlint. That's amazing!
66
To smoothen everyone's experience involved with the project please take note of the following guidelines and rules.
77

88
## Found an Issue?
9+
910
Thank you for reporting any issues you find. We do our best to test and make commitlint as solid as possible, but any reported issue is a real help.
1011

1112
> commitlint issues
1213
1314
Please follow these guidelines when reporting issues:
14-
* Provide a title in the format of `<Error> when <Task>`
15-
* Tag your issue with the tag `bug`
16-
* Provide a short summary of what you are trying to do
17-
* Provide the log of the encountered error if applicable
18-
* Provide the exact version of commitlint. Check `npm ls @commitlint/cli` when in doubt
19-
* Be awesome and consider contributing a [pull request](#want-to-contribute)
15+
16+
- Provide a title in the format of `<Error> when <Task>`
17+
- Tag your issue with the tag `bug`
18+
- Provide a short summary of what you are trying to do
19+
- Provide the log of the encountered error if applicable
20+
- Provide the exact version of commitlint. Check `npm ls @commitlint/cli` when in doubt
21+
- Be awesome and consider contributing a [pull request](#want-to-contribute)
2022

2123
## Want to contribute?
24+
2225
You consider contributing changes to commitlint – we dig that!
2326
Please consider these guidelines when filing a pull request:
2427

2528
> commitlint pull requests
2629
27-
* Follow the [Coding Rules](#coding-rules)
28-
* Follow the [Commit Rules](#commit-rules)
29-
* Make sure you rebased the current master branch when filing the pull request
30-
* Squash your commits when filing the pull request
31-
* Provide a short title with a maximum of 100 characters
32-
* Provide a more detailed description containing
33-
* What you want to achieve
34-
* What you changed
35-
* What you added
36-
* What you removed
30+
- Follow the [Coding Rules](#coding-rules)
31+
- Follow the [Commit Rules](#commit-rules)
32+
- Make sure you rebased the current master branch when filing the pull request
33+
- Squash your commits when filing the pull request
34+
- Provide a short title with a maximum of 100 characters
35+
- Provide a more detailed description containing
36+
_ What you want to achieve
37+
_ What you changed
38+
_ What you added
39+
_ What you removed
3740

3841
## Coding Rules
42+
3943
To keep the code base of commitlint neat and tidy the following rules apply to every change
4044

4145
> Coding standards
4246
43-
* `prettier` is king
44-
* Favor micro library over swiss army knives (rimraf, ncp vs. fs-extra)
45-
* Be awesome
47+
- `prettier` is king
48+
- Favor micro library over swiss army knives (rimraf, ncp vs. fs-extra)
49+
- Be awesome
4650

4751
## Commit Rules
52+
4853
To help everyone with understanding the commit history of commitlint the following commit rules are enforced.
4954
To make your life easier commitlint is commitizen-friendly and provides the npm run-script `commit`.
5055

5156
> Commit standards
5257
53-
* [conventional-changelog](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/prompt)
54-
* husky commit message hook available
55-
* present tense
56-
* maximum of 100 characters
57-
* message format of `$type($scope): $message`
58+
- [conventional-changelog](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/prompt)
59+
- husky commit message hook available
60+
- present tense
61+
- maximum of 100 characters
62+
- message format of `$type($scope): $message`

.github/ISSUE_TEMPLATE.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
<!--- Provide a general summary of the issue in the Title above -->
22

33
## Expected Behavior
4+
45
<!--- If you're describing a bug, tell us what should happen -->
56
<!--- If you're suggesting a change/improvement, tell us how it should work -->
67

78
## Current Behavior
9+
810
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
911
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
1012

1113
## Affected packages
12-
* [ ] cli
13-
* [ ] core
14-
* [ ] prompt
15-
* [ ] config-angular
14+
15+
- [ ] cli
16+
- [ ] core
17+
- [ ] prompt
18+
- [ ] config-angular
1619

1720
## Possible Solution
21+
1822
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
1923
<!--- or ideas how to implement the addition or change -->
2024

2125
## Steps to Reproduce (for bugs)
26+
2227
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
2328
<!--- reproduce this bug. Include code to reproduce, if relevant -->
24-
1.
25-
2.
26-
3.
27-
4.
29+
30+
1. First step
31+
2. Second step
2832

2933
<details>
3034
<summary>commitlint.config.js</summary>
@@ -35,14 +39,16 @@
3539
</details>
3640

3741
## Context
42+
3843
<!--- How has this issue affected you? What are you trying to accomplish? -->
3944
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
4045

4146
## Your Environment
47+
4248
<!--- Include as many relevant details about the environment you experienced the bug in -->
4349

44-
| Executable | Version |
45-
| ---: | :--- |
50+
| Executable | Version |
51+
| ---------------------: | :------ |
4652
| `commitlint --version` | VERSION |
47-
| `git --version` | VERSION |
48-
| `node --version` | VERSION |
53+
| `git --version` | VERSION |
54+
| `node --version` | VERSION |

.github/PULL_REQUEST_TEMPLATE.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,44 @@
11
<!--- Provide a general summary of your changes in the Title above -->
22

33
## Description
4+
45
<!--- Describe your changes in detail -->
56

67
## Motivation and Context
8+
79
<!--- Why is this change required? What problem does it solve? -->
810
<!--- If it fixes an open issue, please link to the issue here. -->
911

1012
## Usage examples
13+
1114
<!--- Provide examples of intended usage -->
1215

1316
```js
1417
// commitlint.config.js
15-
module.exports = {
16-
17-
};
18+
module.exports = {};
1819
```
1920

2021
```sh
2122
echo "your commit message here" | commitlint # fails/passes
2223
```
2324

2425
## How Has This Been Tested?
26+
2527
<!--- Please describe in detail how you tested your changes. -->
2628

2729
## Types of changes
30+
2831
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
32+
2933
- [ ] Bug fix (non-breaking change which fixes an issue)
3034
- [ ] New feature (non-breaking change which adds functionality)
3135
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
3236

3337
## Checklist:
38+
3439
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3540
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
41+
3642
- [ ] My change requires a change to the documentation.
3743
- [ ] I have updated the documentation accordingly.
3844
- [ ] I have added tests to cover my changes.

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
lib/
2+
CHANGELOG.md

.vscode/launch.json

+11-16
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
"type": "node",
9-
"request": "launch",
10-
"name": "Jest Test Current file",
11-
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
12-
"cwd": "${workspaceFolder}",
13-
"args": [
14-
"--runInBand",
15-
"--no-cache",
16-
"--no-coverage",
17-
"${fileBasename}"
18-
],
19-
"sourceMaps": true,
20-
"console": "integratedTerminal",
21-
"internalConsoleOptions": "neverOpen"
22-
}
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Jest Test Current file",
11+
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
12+
"cwd": "${workspaceFolder}",
13+
"args": ["--runInBand", "--no-cache", "--no-coverage", "${fileBasename}"],
14+
"sourceMaps": true,
15+
"console": "integratedTerminal",
16+
"internalConsoleOptions": "neverOpen"
17+
}
2318
]
2419
}

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"scripts": {},
3-
"devDependencies": {
4-
"husky": "4.2.1"
5-
}
2+
"scripts": {},
3+
"devDependencies": {
4+
"husky": "4.2.1"
5+
}
66
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"scripts": {},
3-
"devDependencies": {
4-
"husky": "4.2.1"
5-
}
2+
"scripts": {},
3+
"devDependencies": {
4+
"husky": "4.2.1"
5+
}
66
}

@commitlint/config-angular-type-enum/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ echo "build: bar" | commitlint # passes
2323

2424
```js
2525
// commitlint.config.js
26-
const types = require("@commitlint/config-angular-type-enum");
26+
const types = require('@commitlint/config-angular-type-enum');
2727

2828
// Use as rule creating errors for non-allowed types
2929
module.exports = {

0 commit comments

Comments
 (0)