Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit 65bf872

Browse files
committed
style: reformat source files
1 parent 3054ccf commit 65bf872

File tree

15 files changed

+8757
-8693
lines changed

15 files changed

+8757
-8693
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2
22
jobs:
3-
build_12.18.2:
3+
build_14.15.4:
44
docker:
5-
- image: circleci/node:12.18.2
5+
- image: circleci/node:14.15.4
66
working_directory: ~/app
77
steps:
88
- checkout
@@ -36,5 +36,5 @@ workflows:
3636
version: 2
3737
workflow:
3838
jobs:
39-
- build_12.18.2
39+
- build_14.15.4
4040
- build_latest

.editorconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# http://editorconfig.org
2+
13
[*]
2-
indent_style = tab
4+
indent_style = space
35
indent_size = 2
46
end_of_line = lf
57
charset = utf-8
@@ -14,7 +16,7 @@ indent_style = ignore
1416
insert_final_newline = ignore
1517

1618
[MakeFile]
17-
indent_style = tab
19+
indent_style = space
1820

1921
[*.md]
2022
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"prettier/prettier": [
1212
"error",
1313
{
14-
"endOfLine": "auto"
14+
"endOfLine": "auto"
1515
}
1616
]
1717
}

.github/COMMIT_CONVENTION.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## Git Commit Message Convention
2+
3+
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
4+
5+
Using conventional commit messages, we can automate the process of generating the CHANGELOG file. All commits messages will automatically be validated against the following regex.
6+
7+
``` js
8+
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build|improvement)((.+))?: .{1,50}/
9+
```
10+
11+
## Commit Message Format
12+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
13+
14+
> The **scope** is optional
15+
16+
```
17+
feat(router): add support for prefix
18+
19+
Prefix makes it easier to append a path to a group of routes
20+
```
21+
22+
1. `feat` is type.
23+
2. `router` is scope and is optional
24+
3. `add support for prefix` is the subject
25+
4. The **body** is followed by a blank line.
26+
5. The optional **footer** can be added after the body, followed by a blank line.
27+
28+
## Types
29+
Only one type can be used at a time and only following types are allowed.
30+
31+
- feat
32+
- fix
33+
- docs
34+
- style
35+
- refactor
36+
- perf
37+
- test
38+
- workflow
39+
- ci
40+
- chore
41+
- types
42+
- build
43+
44+
If a type is `feat`, `fix` or `perf`, then the commit will appear in the CHANGELOG.md file. However if there is any BREAKING CHANGE, the commit will always appear in the changelog.
45+
46+
### Revert
47+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>`., where the hash is the SHA of the commit being reverted.
48+
49+
## Scope
50+
The scope could be anything specifying place of the commit change. For example: `router`, `view`, `querybuilder`, `database`, `model` and so on.
51+
52+
## Subject
53+
The subject contains succinct description of the change:
54+
55+
- use the imperative, present tense: "change" not "changed" nor "changes".
56+
- don't capitalize first letter
57+
- no dot (.) at the end
58+
59+
## Body
60+
61+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
62+
The body should include the motivation for the change and contrast this with previous behavior.
63+
64+
## Footer
65+
66+
The footer should contain any information about **Breaking Changes** and is also the place to
67+
reference GitHub issues that this commit **Closes**.
68+
69+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
70+

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ config.json
55
.eslintrc.json
66
package.json
77
*.html
8+
*.txt

.prettierrc

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2-
"trailingComma": "es5",
3-
"semi": false,
4-
"singleQuote": true,
5-
"useTabs": true,
6-
"quoteProps": "consistent",
7-
"bracketSpacing": true,
8-
"arrowParens": "always",
9-
"printWidth": 100,
10-
"overrides": [
11-
{
12-
"files": "*.md",
13-
"options": {
14-
"useTabs": false
15-
}
16-
}
17-
]
2+
"trailingComma": "es5",
3+
"semi": false,
4+
"singleQuote": true,
5+
"useTabs": false,
6+
"quoteProps": "consistent",
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"printWidth": 100
1810
}

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
matrix:
33
- nodejs_version: Stable
4-
- nodejs_version: 12.18.2
4+
- nodejs_version: 14.15.4
55
init: git config --global core.autocrlf true
66
install:
77
- ps: Install-Product node $env:nodejs_version

config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"core": false,
3-
"ts": true,
43
"license": "MIT",
54
"services": [
65
"appveyor",
76
"circleci"
87
],
98
"appveyorUsername": "thetutlage",
10-
"minNodeVersion": "12.18.2",
9+
"minNodeVersion": "14.15.4",
1110
"probotApps": [
1211
"stale",
1312
"lock"

0 commit comments

Comments
 (0)