Skip to content

Commit 99f3fe1

Browse files
committed
Sync with template repo
1 parent fa247bf commit 99f3fe1

30 files changed

+31340
-7588
lines changed

.devcontainer/devcontainer.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "GitHub Actions (TypeScript)",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
4+
"postCreateCommand": "npm install",
5+
"customizations": {
6+
"codespaces": {
7+
"openFiles": ["README.md"]
8+
},
9+
"vscode": {
10+
"extensions": [
11+
"bierner.markdown-preview-github-styles",
12+
"davidanson.vscode-markdownlint",
13+
"dbaeumer.vscode-eslint",
14+
"esbenp.prettier-vscode",
15+
"github.copilot",
16+
"github.copilot-chat",
17+
"github.vscode-github-actions",
18+
"github.vscode-pull-request-github",
19+
"me-dutour-mathieu.vscode-github-actions",
20+
"redhat.vscode-yaml",
21+
"rvest.vs-code-prettier-eslint",
22+
"yzhang.markdown-all-in-one"
23+
],
24+
"settings": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode",
26+
"editor.tabSize": 2,
27+
"editor.formatOnSave": true,
28+
"markdown.extension.list.indentationSize": "adaptive",
29+
"markdown.extension.italic.indicator": "_",
30+
"markdown.extension.orderedList.marker": "one"
31+
}
32+
}
33+
},
34+
"remoteEnv": {
35+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
36+
},
37+
"features": {
38+
"ghcr.io/devcontainers/features/github-cli:1": {},
39+
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
40+
}
41+
}

.eslintignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dist/
21
lib/
2+
dist/
33
node_modules/
4-
jest.config.js
4+
coverage/

.eslintrc.json

-18
This file was deleted.

.gitattributes

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# Prevent build from appearing in github diff's
2-
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
3-
dist/** -diff linguist-generated=true
4-
5-
# Control the archive attached to releases
6-
# https://git-scm.com/docs/gitattributes#_creating_an_archive
7-
* export-ignore
8-
9-
package.json -export-ignore
10-
README.md -export-ignore
11-
LICENSE -export-ignore
12-
action.yml -export-ignore
13-
14-
dist/** -export-ignore
15-
dist -export-ignore
1+
* text=auto eol=lf
162

3+
dist/** -diff linguist-generated=true

.github/dependabot.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
version: 2
22
updates:
3-
# Enable version updates for npm
4-
- package-ecosystem: 'npm'
5-
# Look for `package.json` and `lock` files in the `root` directory
6-
directory: '/'
7-
# Check the npm registry for updates every day (weekdays)
3+
- package-ecosystem: github-actions
4+
directory: /
85
schedule:
9-
interval: 'daily'
6+
interval: weekly
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: npm
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
groups:
18+
npm-development:
19+
dependency-type: development
20+
update-types:
21+
- minor
22+
- patch
23+
npm-production:
24+
dependency-type: production
25+
update-types:
26+
- patch

.github/linters/.eslintrc.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
env:
2+
node: true
3+
es6: true
4+
jest: true
5+
6+
globals:
7+
Atomics: readonly
8+
SharedArrayBuffer: readonly
9+
10+
ignorePatterns:
11+
- "!.*"
12+
- "**/node_modules/.*"
13+
- "**/dist/.*"
14+
- "**/coverage/.*"
15+
- "*.json"
16+
17+
parser: "@typescript-eslint/parser"
18+
19+
parserOptions:
20+
ecmaVersion: 2023
21+
sourceType: module
22+
project:
23+
- "./.github/linters/tsconfig.json"
24+
- "./tsconfig.json"
25+
26+
plugins:
27+
- jest
28+
- "@typescript-eslint"
29+
30+
extends:
31+
- eslint:recommended
32+
- plugin:@typescript-eslint/eslint-recommended
33+
- plugin:@typescript-eslint/recommended
34+
- plugin:jest/recommended
35+
36+
rules:
37+
{
38+
"camelcase": "off",
39+
"eslint-comments/no-use": "off",
40+
"eslint-comments/no-unused-disable": "off",
41+
"i18n-text/no-en": "off",
42+
"import/no-namespace": "off",
43+
"no-console": "off",
44+
"no-unused-vars": "off",
45+
"semi": "off",
46+
"@typescript-eslint/array-type": "error",
47+
"@typescript-eslint/await-thenable": "error",
48+
"@typescript-eslint/ban-ts-comment": "error",
49+
"@typescript-eslint/consistent-type-assertions": "error",
50+
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
51+
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
52+
"@typescript-eslint/no-array-constructor": "error",
53+
"@typescript-eslint/no-empty-interface": "error",
54+
"@typescript-eslint/no-explicit-any": "error",
55+
"@typescript-eslint/no-extraneous-class": "error",
56+
"@typescript-eslint/no-for-in-array": "error",
57+
"@typescript-eslint/no-inferrable-types": "error",
58+
"@typescript-eslint/no-misused-new": "error",
59+
"@typescript-eslint/no-namespace": "error",
60+
"@typescript-eslint/no-non-null-assertion": "warn",
61+
"@typescript-eslint/no-require-imports": "error",
62+
"@typescript-eslint/no-unnecessary-qualifier": "error",
63+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
64+
"@typescript-eslint/no-unused-vars": "error",
65+
"@typescript-eslint/no-useless-constructor": "error",
66+
"@typescript-eslint/no-var-requires": "error",
67+
"@typescript-eslint/prefer-for-of": "warn",
68+
"@typescript-eslint/prefer-function-type": "warn",
69+
"@typescript-eslint/prefer-includes": "error",
70+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
71+
"@typescript-eslint/promise-function-async": "error",
72+
"@typescript-eslint/require-array-sort-compare": "error",
73+
"@typescript-eslint/restrict-plus-operands": "error",
74+
"@typescript-eslint/space-before-function-paren": "off",
75+
"@typescript-eslint/unbound-method": "error"
76+
}

.github/linters/.markdown-lint.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Unordered list style
2+
MD004:
3+
style: dash
4+
5+
# Ordered list item prefix
6+
MD029:
7+
style: one
8+
9+
# Spaces after list markers
10+
MD030:
11+
ul_single: 1
12+
ol_single: 1
13+
ul_multi: 1
14+
ol_multi: 1
15+
16+
# Code block style
17+
MD046:
18+
style: fenced

.github/linters/.yaml-lint.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules:
2+
document-end: disable
3+
document-start:
4+
level: warning
5+
present: false
6+
line-length:
7+
level: warning
8+
max: 80
9+
allow-non-breakable-words: true
10+
allow-non-breakable-inline-mappings: true

.github/linters/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"noEmit": true
6+
},
7+
"include": ["../../__tests__/**/*", "../../src/**/*"],
8+
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"]
9+
}

.github/workflows/test.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
name: 'build-test'
1+
name: "build-test"
22
on: # rebuild any PRs and main branch changes
33
pull_request:
44
push:
55
branches:
66
- main
7-
- 'releases/*'
7+
- "releases/*"
88

99
jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: "16"
18-
cache: "yarn"
19-
13+
- uses: actions/checkout@v4
2014
- run: |
2115
yarn
2216
- run: |

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,8 @@ Thumbs.db
9696

9797
# Ignore built ts files
9898
__tests__/runner/*
99-
lib/**/*
99+
100+
# IDE files
101+
.idea
102+
.vscode
103+
*.code-workspace

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.prettierignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dist/
2-
lib/
3-
node_modules/
2+
node_modules/
3+
coverage/

.prettierrc.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
2-
"printWidth": 80,
2+
"printWidth": 200,
33
"tabWidth": 2,
44
"useTabs": false,
55
"semi": true,
66
"singleQuote": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
79
"trailingComma": "none",
810
"bracketSpacing": true,
9-
"arrowParens": "avoid"
11+
"bracketSameLine": true,
12+
"arrowParens": "avoid",
13+
"proseWrap": "always",
14+
"htmlWhitespaceSensitivity": "css",
15+
"endOfLine": "lf"
1016
}

CODEOWNERS

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* @actions/actions-runtime
1+
# Repository CODEOWNERS
2+
3+
* @actions/actions-oss-maintainers

LICENSE

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
MIT License
12

2-
The MIT License (MIT)
3-
4-
Copyright (c) 2018 GitHub, Inc. and contributors
3+
Copyright GitHub
54

65
Permission is hereby granted, free of charge, to any person obtaining a copy
76
of this software and associated documentation files (the "Software"), to deal
@@ -10,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
109
copies of the Software, and to permit persons to whom the Software is
1110
furnished to do so, subject to the following conditions:
1211

13-
The above copyright notice and this permission notice shall be included in
14-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1514

1615
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1716
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1817
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1918
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2019
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)