Skip to content

Commit e560d6c

Browse files
authored
chore: change some project configs (Nikaple#16)
add `prettier` on all files, change `semantic-release` and `commitlint` configs
1 parent 2e09bad commit e560d6c

29 files changed

+224
-267
lines changed

.commitlintrc.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
jest: true,
1717
},
1818
rules: {
19-
"prettier/prettier": "error",
19+
'prettier/prettier': 'error',
2020
'@typescript-eslint/interface-name-prefix': 'off',
2121
'@typescript-eslint/explicit-function-return-type': 'off',
2222
'@typescript-eslint/no-explicit-any': 'off',

.github/ISSUE_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
55
-->
66

77
## I'm submitting a...
8-
<!--
8+
9+
<!--
910
Please search GitHub for a similar issue or PR before submitting.
1011
Check one of the following options with "x" -->
1112
<pre><code>
@@ -17,19 +18,20 @@ Check one of the following options with "x" -->
1718
</code></pre>
1819

1920
## Current behavior
20-
<!-- Describe how the issue manifests. -->
2121

22+
<!-- Describe how the issue manifests. -->
2223

2324
## Expected behavior
24-
<!-- Describe what the desired behavior would be. -->
2525

26+
<!-- Describe what the desired behavior would be. -->
2627

2728
## Minimal reproduction of the problem with instructions
29+
2830
<!-- Please share a repo, a gist, or step-by-step instructions. -->
2931

3032
## What is the motivation / use case for changing the behavior?
31-
<!-- Describe the motivation or the concrete use case. -->
3233

34+
<!-- Describe the motivation or the concrete use case. -->
3335

3436
## Environment
3537

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
## PR Checklist
2+
23
Please check if your PR fulfills the following requirements:
34

45
- [ ] The commit message follows our guidelines: https://github.com/Nikaple/nest-typed-config/blob/main/CONTRIBUTING.md
56
- [ ] Tests for the changes have been added (for bug fixes / features)
67
- [ ] Docs have been added / updated (for bug fixes / features)
78

8-
99
## PR Type
10+
1011
What kind of change does this PR introduce?
1112

1213
<!-- Please check the one that applies to this PR using "x". -->
14+
1315
```
1416
[ ] Bugfix
1517
[ ] Feature
@@ -21,21 +23,20 @@ What kind of change does this PR introduce?
2123
```
2224

2325
## What is the current behavior?
26+
2427
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
2528

2629
Issue Number: N/A
2730

28-
2931
## What is the new behavior?
3032

31-
3233
## Does this PR introduce a breaking change?
34+
3335
```
3436
[ ] Yes
3537
[ ] No
3638
```
3739

3840
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
3941

40-
41-
## Other information
42+
## Other information

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Lint
3333
run: npm run lint:dontfix
3434

35+
- name: Check Formatting
36+
run: npm run format:dontfix
37+
3538
- name: Coverage
3639
run: npm run test:cov
3740

.github/workflows/doc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Lint
2828
run: npm run lint:dontfix
2929

30+
- name: Check Formatting
31+
run: npm run format:dontfix
32+
3033
- name: Coverage
3134
run: npm run test:cov
3235

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Lint
3636
run: npm run lint:dontfix
3737

38+
- name: Check Formatting
39+
run: npm run format:dontfix
40+
3841
- name: Coverage
3942
run: npm run test:cov
4043

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install commitlint -c .commitlintrc.json --edit $1
4+
npx --no-install commitlint --edit "$1"

.release-it.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)