Skip to content

Commit 6923798

Browse files
Restyle config (#573)
* configure restyle and formatters * apply formatter
1 parent 7949993 commit 6923798

File tree

278 files changed

+84332
-2964
lines changed

Some content is hidden

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

278 files changed

+84332
-2964
lines changed

.github/ISSUE_TEMPLATE/add-contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ about: Add a Contributor to the project with the allcontributors-Bot
44
title: 'docs: add contributor'
55
labels: 'docs'
66
assignees: ''
7-
87
---
8+
99
<!-- ---------------------- Important ---------------------- -->
1010
<!-- IT'S NOT NECESSARY TO OPEN A NEW ISSUE. YOU CAN ALSO CALL THE BOT IN A PULL REQUEST-->
1111
<!-- Only add one person per comment -->

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,37 @@ about: Create a report about an existing bug
44
title: ''
55
labels: 'bug'
66
assignees: ''
7-
87
---
8+
99
<!-- This warning can be deleted before Submit-->
10-
> #### This is a public issue tracker.
11-
> #### Be sure that your description and screenshots not contain any personal or company info.
1210

11+
> #### This is a public issue tracker.
12+
>
13+
> #### Be sure that your description and screenshots not contain any personal or company info.
1314
1415
**Describe the bug:**
16+
1517
<!-- A clear and concise description of what the bug is. -->
1618

1719
**To Reproduce:**
20+
1821
<!-- Steps to reproduce the behavior:
1922
1. Go to '...'
2023
2. Click on '....'
2124
3. Scroll down to '....'
22-
4. See error
25+
4. See error
2326
-->
2427

2528
**Expected behavior:**
29+
2630
<!-- A clear and concise description of what you expected to happen. -->
2731

2832
**Screenshots:**
33+
2934
> **Please pay attention to not disclose personal information!**
35+
3036
<!-- If applicable, add screenshots to help explain your problem. -->
3137

3238
**Additional context:**
39+
3340
<!-- Add any other context about the problem here. -->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ about: Suggest an idea or enhancement for this project
44
title: ''
55
labels: 'feature'
66
assignees: ''
7-
87
---
8+
99
<!-- This warning can be deleted before Submit-->
10-
> #### This is a public issue tracker.
10+
11+
> #### This is a public issue tracker.
12+
>
1113
> #### Be sure that your description and screenshots not contain any personal or company info.
1214
1315
**Is your feature request related to a problem? Please describe.**
16+
1417
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
1518

1619
**Describe the solution you'd like**
20+
1721
<!-- A clear and concise description of what you want to happen. -->
1822

1923
**Describe alternatives you've considered**
24+
2025
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
2126

2227
**Additional context**
28+
2329
<!-- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
This issue resolves #
22

33
#### Proposed Changes
4+
45
-
56

67
#### Additional Information
78

8-
99
#### Please check if the PR fulfills these requirements
10+
1011
- [ ] You are not submitting any personal or company info in your code or in the description.
1112
- [ ] The commit message follows our [guidelines](link to guidelines)
1213
- [ ] Tests for the changes have been added (if necessary)

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Auto Merge Pull Requests
22

3-
on: [pull_request,pull_request_review,status]
3+
on: [pull_request, pull_request_review, status]
44

55
jobs:
66
automerge:
77
runs-on: ubuntu-18.04
88
steps:
9-
- name: Merge pull requests
10-
uses: pascalgn/automerge-action@v0.4.2
11-
env:
12-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
13-
MERGE_METHOD: "squash"
14-
LABELS: "!wip,!work in progress"
9+
- name: Merge pull requests
10+
uses: pascalgn/automerge-action@v0.4.2
11+
env:
12+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
13+
MERGE_METHOD: 'squash'
14+
LABELS: '!wip,!work in progress'

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Phonebook/**/*.yaml
2+
Phonebook/demo/*.yaml
3+
docs/assets/js/search-data.json
4+
docs/**/*.html
5+
docs/**/*.js
6+
**/dist/*

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"jsxSingleQuote": true,
3+
"singleQuote": true,
4+
"printWidth": 100,
5+
"jsxBracketSameLine": false,
6+
"endOfLine": "lf",
7+
"semi": true,
8+
"trailingComma": "es5",
9+
"arrowParens": "always",
10+
"htmlWhitespaceSensitivity": "strict"
11+
}

.restyled.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
---
2-
enabled: false
2+
enabled: true
3+
restylers:
4+
- prettier:
5+
image: restyled/restyler-prettier:v2.0.2-1
6+
include:
7+
- '**/*.js'
8+
- '**/*.ts'
9+
- '**/*.html'
10+
- '**/*.md'
11+
- '**/*.yml'
12+
- '**/*.yaml'
13+
- '**/*.json'
14+
- '**/*.css'
15+
- '**/*.scss'

.vscode/launch.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
// Use IntelliSense to find out which attributes exist for C# debugging
3-
// Use hover for the description of the existing attributes
4-
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": ".NET Core Launch (web)",
9-
"type": "coreclr",
10-
"request": "launch",
11-
"preLaunchTask": "build",
12-
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/bin/Debug/netcoreapp2.2/Phonebook.Source.PeopleSoft.dll",
14-
"args": [],
15-
"cwd": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft",
16-
"stopAtEntry": false,
17-
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
18-
"serverReadyAction": {
19-
"action": "openExternally",
20-
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
21-
},
22-
"env": {
23-
"ASPNETCORE_ENVIRONMENT": "Development"
24-
},
25-
"sourceFileMap": {
26-
"/Views": "${workspaceFolder}/Views"
27-
}
28-
},
29-
{
30-
"name": ".NET Core Attach",
31-
"type": "coreclr",
32-
"request": "attach",
33-
"processId": "${command:pickProcess}"
34-
}
35-
]
36-
}
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (web)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/bin/Debug/netcoreapp2.2/Phonebook.Source.PeopleSoft.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft",
16+
"stopAtEntry": false,
17+
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
18+
"serverReadyAction": {
19+
"action": "openExternally",
20+
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
21+
},
22+
"env": {
23+
"ASPNETCORE_ENVIRONMENT": "Development"
24+
},
25+
"sourceFileMap": {
26+
"/Views": "${workspaceFolder}/Views"
27+
}
28+
},
29+
{
30+
"name": ".NET Core Attach",
31+
"type": "coreclr",
32+
"request": "attach",
33+
"processId": "${command:pickProcess}"
34+
}
35+
]
36+
}

Phonebook.Frontend/.cz-config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ module.exports = {
88
{
99
value: 'style',
1010
name:
11-
'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'
11+
'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
12+
},
13+
{
14+
value: 'refactor',
15+
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
1216
},
13-
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature' },
1417
{ value: 'perf', name: 'perf: A code change that improves performance' },
1518
{ value: 'test', name: 'test: Adding missing tests' },
1619
{ value: 'docs', name: 'docs: Documentation only changes' },
1720
{
1821
value: 'chore',
1922
name:
20-
'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation'
23+
'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
2124
},
2225
{ value: 'revert', name: 'revert: Revert to a commit' },
23-
{ value: 'WIP', name: 'WIP: Work in progress' }
26+
{ value: 'WIP', name: 'WIP: Work in progress' },
2427
],
2528
scopes: [
2629
{ name: 'App.Types' },
@@ -31,7 +34,7 @@ module.exports = {
3134
{ name: 'ServiceWorker' },
3235
{ name: 'Migrations' },
3336
{ name: 'Package.json' },
34-
{ name: 'CommitConfig' }
37+
{ name: 'CommitConfig' },
3538
],
3639

3740
// // it needs to match the value for field type. Eg.: 'fix'
@@ -55,5 +58,5 @@ module.exports = {
5558
allowBreakingChanges: ['feat', 'fix'],
5659

5760
// limit subject length
58-
subjectLimit: 100
61+
subjectLimit: 100,
5962
};

0 commit comments

Comments
 (0)