Skip to content

Commit 060f974

Browse files
committed
fix: apply prettier to the whole project
1 parent 7f5b807 commit 060f974

25 files changed

+351
-320
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
version: 2
55
updates:
6-
- package-ecosystem: "npm"
6+
- package-ecosystem: 'npm'
77
# Location of package-lock.json
8-
directory: "/"
8+
directory: '/'
99
# Check daily for updates
1010
schedule:
11-
interval: "daily"
11+
interval: 'daily'
1212
commit-message:
1313
# Set commit message prefix
14-
prefix: "refactor"
14+
prefix: 'refactor'

.github/workflows/release-automated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: release-automated
22
on:
33
push:
4-
branches: [ main, master, release, alpha, beta, next-major ]
4+
branches: [main, master, release, alpha, beta, next-major]
55
jobs:
66
release:
77
runs-on: ubuntu-latest

.nycrc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"reporter": [
3-
"lcov",
4-
"text-summary"
5-
],
6-
"exclude": [
7-
"**/spec/**"
8-
]
2+
"reporter": ["lcov", "text-summary"],
3+
"exclude": ["**/spec/**"]
94
}
10-

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# logs
2+
logs
3+
4+
# build folder
5+
dist

.prettierrc

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

.prettierrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"arrowParens": "avoid",
6+
"printWidth": 100,
7+
"overrides": [
8+
{
9+
"files": "**/*.hbs",
10+
"options": {
11+
"parser": "angular"
12+
}
13+
}
14+
]
15+
}

.releaserc/commit.hbs

Lines changed: 46 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,55 @@
1-
*{{#if scope}} **{{scope}}:**
2-
{{~/if}} {{#if subject}}
3-
{{~subject}}
1+
*{{#if scope}} **{{ scope }}:** {{~/if}} {{#if subject}}
2+
{{~subject}}
43
{{~else}}
5-
{{~header}}
4+
{{~header}}
65
{{~/if}}
76

8-
{{~!-- commit link --}} {{#if @root.linkReferences~}}
9-
([{{shortHash}}](
10-
{{~#if @root.repository}}
11-
{{~#if @root.host}}
12-
{{~@root.host}}/
13-
{{~/if}}
14-
{{~#if @root.owner}}
15-
{{~@root.owner}}/
16-
{{~/if}}
17-
{{~@root.repository}}
18-
{{~else}}
19-
{{~@root.repoUrl}}
20-
{{~/if}}/
21-
{{~@root.commit}}/{{hash}}))
7+
{{~!-- commit link --}} {{#if @root.linkReferences~}} ([{{ shortHash }}](
8+
{{~#if @root.repository}}
9+
{{~#if @root.host}}
10+
{{~@root.host}}/
11+
{{~/if}}
12+
{{~#if @root.owner}}
13+
{{~@root.owner}}/
14+
{{~/if}}
15+
{{~@root.repository}}
2216
{{~else}}
23-
{{~shortHash}}
17+
{{~@root.repoUrl}}
18+
{{~/if}}/ {{~@root.commit}}/{{ hash }}))
19+
{{~else}}
20+
{{~shortHash}}
2421
{{~/if}}
2522

2623
{{~!-- commit references --}}
2724
{{~#if references~}}
28-
, closes
29-
{{~#each references}} {{#if @root.linkReferences~}}
30-
[
31-
{{~#if this.owner}}
32-
{{~this.owner}}/
33-
{{~/if}}
34-
{{~this.repository}}#{{this.issue}}](
35-
{{~#if @root.repository}}
36-
{{~#if @root.host}}
37-
{{~@root.host}}/
38-
{{~/if}}
39-
{{~#if this.repository}}
40-
{{~#if this.owner}}
41-
{{~this.owner}}/
42-
{{~/if}}
43-
{{~this.repository}}
44-
{{~else}}
45-
{{~#if @root.owner}}
46-
{{~@root.owner}}/
47-
{{~/if}}
48-
{{~@root.repository}}
49-
{{~/if}}
50-
{{~else}}
51-
{{~@root.repoUrl}}
52-
{{~/if}}/
53-
{{~@root.issue}}/{{this.issue}})
54-
{{~else}}
55-
{{~#if this.owner}}
56-
{{~this.owner}}/
57-
{{~/if}}
58-
{{~this.repository}}#{{this.issue}}
59-
{{~/if}}{{/each}}
25+
, closes
26+
{{~#each references}} {{#if @root.linkReferences~}}
27+
[
28+
{{~#if this.owner}}
29+
{{~this.owner}}/
30+
{{~/if}}
31+
{{~this.repository}}#{{ this.issue }}](
32+
{{~#if @root.repository}}
33+
{{~#if @root.host}}
34+
{{~@root.host}}/
35+
{{~/if}}
36+
{{~#if this.repository}}
37+
{{~#if this.owner}}
38+
{{~this.owner}}/
39+
{{~/if}}
40+
{{~this.repository}}
41+
{{~else}}
42+
{{~#if @root.owner}}
43+
{{~@root.owner}}/
44+
{{~/if}}
45+
{{~@root.repository}}
46+
{{~/if}}
47+
{{~else}}
48+
{{~@root.repoUrl}}
49+
{{~/if}}/ {{~@root.issue}}/{{ this.issue }})
50+
{{~else}}
51+
{{~#if this.owner}}
52+
{{~this.owner}}/
53+
{{~/if}}
54+
{{~this.repository}}#{{ this.issue }} {{~/if}}{{/each}}
6055
{{~/if}}
61-

.releaserc/footer.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{{#if noteGroups}}
22
{{#each noteGroups}}
33

4-
### {{title}}
4+
### {{ title }}
55

66
{{#each notes}}
7-
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} ([{{commit.shortHash}}]({{commit.shortHash}}))
7+
* {{#if commit.scope}}**{{ commit.scope }}:** {{/if}}{{ text }} ([{{ commit.shortHash }}]({{
8+
commit.shortHash
9+
}}))
810
{{/each}}
911
{{/each}}
1012

.releaserc/header.hbs

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
{{#if isPatch~}}
2-
##
2+
##
33
{{~else~}}
4-
#
5-
{{~/if}} {{#if @root.linkCompare~}}
6-
[{{version}}](
7-
{{~#if @root.repository~}}
8-
{{~#if @root.host}}
9-
{{~@root.host}}/
10-
{{~/if}}
11-
{{~#if @root.owner}}
12-
{{~@root.owner}}/
13-
{{~/if}}
14-
{{~@root.repository}}
15-
{{~else}}
16-
{{~@root.repoUrl}}
17-
{{~/if~}}
18-
/compare/{{previousTag}}...{{currentTag}})
4+
#
5+
{{~/if}} {{#if @root.linkCompare~}} [{{ version }}](
6+
{{~#if @root.repository~}}
7+
{{~#if @root.host}}
8+
{{~@root.host}}/
9+
{{~/if}}
10+
{{~#if @root.owner}}
11+
{{~@root.owner}}/
12+
{{~/if}}
13+
{{~@root.repository}}
14+
{{~else}}
15+
{{~@root.repoUrl}}
16+
{{~/if~}}
17+
/compare/{{ previousTag }}...{{ currentTag }})
1918
{{~else}}
20-
{{~version}}
19+
{{~version}}
2120
{{~/if}}
22-
{{~#if title}} "{{title}}"
21+
{{~#if title}} "{{ title }}"
2322
{{~/if}}
24-
{{~#if date}} ({{date}})
23+
{{~#if date}} ({{ date }})
2524
{{/if}}

.releaserc/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{#each commitGroups}}
44

55
{{#if title}}
6-
### {{title}}
6+
### {{ title }}
77

88
{{/if}}
99
{{#each commits}}

0 commit comments

Comments
 (0)