Skip to content

Commit e7b6ad9

Browse files
committed
chore: upgrade Prettier and run on full repo
- Move Prettier 1 -> to support `.` glob and built-in parsers - Move whitespace settings to EditorConfig that Prettier reads - Expand glob to run on all non-generated files
1 parent 9ced9a4 commit e7b6ad9

31 files changed

+1624
-1579
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
* text=auto eol=lf
12
.licenses/** -diff linguist-generated=true

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a bug report
44
title: ''
55
labels: bug, needs triage
66
assignees: ''
7-
87
---
98

109
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
@@ -17,15 +16,18 @@ A clear and concise description of what the bug is.
1716
Specify the action version
1817

1918
**Platform:**
19+
2020
- [ ] Ubuntu
2121
- [ ] macOS
2222
- [ ] Windows
2323

2424
**Runner type:**
25+
2526
- [ ] Hosted
2627
- [ ] Self-hosted
2728

2829
**Tools version:**
30+
2931
<!--- Please specify versions of node and package manager (npm, yarn, pnpm and etc)-->
3032

3133
**Repro steps:**

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: ''
55
labels: feature request, needs triage
66
assignees: ''
77
---
8+
89
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
910
<!--- Before opening up a new feature request, please make sure to check for similar existing issues and pull requests -->
1011

@@ -15,4 +16,5 @@ Describe your proposal.
1516
Justification or a use case for your proposal.
1617

1718
**Are you willing to submit a PR?**
18-
<!--- We accept contributions! -->
19+
20+
<!--- We accept contributions! -->

.github/eslint-compact.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"problemMatcher": [
2+
"problemMatcher": [
3+
{
4+
"owner": "eslint-compact",
5+
"pattern": [
36
{
4-
"owner": "eslint-compact",
5-
"pattern": [
6-
{
7-
"regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$",
8-
"file": 1,
9-
"line": 2,
10-
"column": 3,
11-
"severity": 4,
12-
"message": 5,
13-
"code": 6
14-
}
15-
]
7+
"regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5,
13+
"code": 6
1614
}
17-
]
15+
]
16+
}
17+
]
1818
}

.github/eslint-stylish.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"problemMatcher": [
2+
"problemMatcher": [
3+
{
4+
"owner": "eslint-stylish",
5+
"pattern": [
36
{
4-
"owner": "eslint-stylish",
5-
"pattern": [
6-
{
7-
"regexp": "^([^\\s].*)$",
8-
"file": 1
9-
},
10-
{
11-
"regexp": "^\\s+(\\d+):(\\d+)\\s+(error|warning|info)\\s+(.*)\\s\\s+(.*)$",
12-
"line": 1,
13-
"column": 2,
14-
"severity": 3,
15-
"message": 4,
16-
"code": 5,
17-
"loop": true
18-
}
19-
]
7+
"regexp": "^([^\\s].*)$",
8+
"file": 1
9+
},
10+
{
11+
"regexp": "^\\s+(\\d+):(\\d+)\\s+(error|warning|info)\\s+(.*)\\s\\s+(.*)$",
12+
"line": 1,
13+
"column": 2,
14+
"severity": 3,
15+
"message": 4,
16+
"code": 5,
17+
"loop": true
2018
}
21-
]
19+
]
20+
}
21+
]
2222
}

.github/pull_request_template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Describe your changes.
55
Add link to the related issue.
66

77
**Check list:**
8+
89
- [ ] Mark if documentation changes are required.
9-
- [ ] Mark if tests were added or updated to cover the changes.
10+
- [ ] Mark if tests were added or updated to cover the changes.

.github/tsc.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"problemMatcher": [
2+
"problemMatcher": [
3+
{
4+
"owner": "tsc",
5+
"pattern": [
36
{
4-
"owner": "tsc",
5-
"pattern": [
6-
{
7-
"regexp": "^([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+TS(\\d+)\\s*:\\s*(.*)$",
8-
"file": 1,
9-
"line": 2,
10-
"column": 3,
11-
"severity": 4,
12-
"code": 5,
13-
"message": 6
14-
}
15-
]
7+
"regexp": "^([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+TS(\\d+)\\s*:\\s*(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"code": 5,
13+
"message": 6
1614
}
17-
]
15+
]
16+
}
17+
]
1818
}

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- run: npm ci
2828
- run: npm run build
2929
- run: npm run format-check
30-
- run: npm test
30+
- run: npm test

.github/workflows/e2e-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- releases/*
1111
paths-ignore:
1212
- '**.md'
13-
13+
1414
jobs:
1515
node-npm-depencies-caching:
1616
name: Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }})

.github/workflows/release-new-action-version.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
name: releaseNewActionVersion
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Update the ${{ env.TAG_NAME }} tag
24-
uses: actions/publish-action@v0.1.0
25-
with:
26-
source-tag: ${{ env.TAG_NAME }}
27-
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
23+
- name: Update the ${{ env.TAG_NAME }} tag
24+
uses: actions/publish-action@v0.1.0
25+
with:
26+
source-tag: ${{ env.TAG_NAME }}
27+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: versions
33
on:
44
pull_request:
55
paths-ignore:
6-
- '**.md'
7-
push:
6+
- '**.md'
7+
push:
88
branches:
99
- main
1010
- releases/*
1111
paths-ignore:
1212
- '**.md'
13-
13+
1414
jobs:
1515
local-cache:
1616
runs-on: ${{ matrix.os }}

.licensed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ allowed:
1212
- unlicense
1313

1414
reviewed:
15-
npm:
15+
npm:

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.licenses/
2+
dist/
3+
pnpm-lock.yaml

.prettierrc.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"printWidth": 80,
3-
"tabWidth": 2,
4-
"useTabs": false,
5-
"semi": true,
6-
"singleQuote": true,
7-
"trailingComma": "none",
8-
"bracketSpacing": false,
9-
"arrowParens": "avoid",
10-
"parser": "typescript"
11-
}
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"bracketSpacing": false,
7+
"arrowParens": "avoid"
8+
}

.vscode/launch.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "Debug Jest Tests on Nix",
9-
"type": "node",
10-
"request": "launch",
11-
"runtimeArgs": [
12-
"--inspect-brk",
13-
"${workspaceRoot}/node_modules/.bin/jest",
14-
"--runInBand"
15-
],
16-
"console": "integratedTerminal",
17-
"internalConsoleOptions": "neverOpen",
18-
"port": 9229
19-
}
20-
]
21-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Debug Jest Tests on Nix",
9+
"type": "node",
10+
"request": "launch",
11+
"runtimeArgs": [
12+
"--inspect-brk",
13+
"${workspaceRoot}/node_modules/.bin/jest",
14+
"--runInBand"
15+
],
16+
"console": "integratedTerminal",
17+
"internalConsoleOptions": "neverOpen",
18+
"port": 9229
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)