Skip to content

Commit 8d473fb

Browse files
Merge pull request #137 from agendrix/upgrade-node
Upgrade to node20
2 parents 9f9f405 + 0f28d3a commit 8d473fb

39 files changed

+28035
-5654
lines changed

.devcontainer/devcontainer.json

Lines changed: 41 additions & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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

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

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
dist/** -diff linguist-generated=true
1+
* text=auto eol=lf
2+
3+
dist/** -diff linguist-generated=true

.github/dependabot.yml

Lines changed: 23 additions & 6 deletions
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: "weekly"
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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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":
51+
["error", { "accessibility": "no-public" }],
52+
"@typescript-eslint/explicit-function-return-type":
53+
["error", { "allowExpressions": true }],
54+
"@typescript-eslint/no-array-constructor": "error",
55+
"@typescript-eslint/no-empty-interface": "error",
56+
"@typescript-eslint/no-explicit-any": "error",
57+
"@typescript-eslint/no-extraneous-class": "error",
58+
"@typescript-eslint/no-for-in-array": "error",
59+
"@typescript-eslint/no-inferrable-types": "error",
60+
"@typescript-eslint/no-misused-new": "error",
61+
"@typescript-eslint/no-namespace": "error",
62+
"@typescript-eslint/no-non-null-assertion": "warn",
63+
"@typescript-eslint/no-require-imports": "error",
64+
"@typescript-eslint/no-unnecessary-qualifier": "error",
65+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
66+
"@typescript-eslint/no-unused-vars": "error",
67+
"@typescript-eslint/no-useless-constructor": "error",
68+
"@typescript-eslint/no-var-requires": "error",
69+
"@typescript-eslint/prefer-for-of": "warn",
70+
"@typescript-eslint/prefer-function-type": "warn",
71+
"@typescript-eslint/prefer-includes": "error",
72+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
73+
"@typescript-eslint/promise-function-async": "error",
74+
"@typescript-eslint/require-array-sort-compare": "error",
75+
"@typescript-eslint/restrict-plus-operands": "error",
76+
"@typescript-eslint/space-before-function-paren": "off",
77+
"@typescript-eslint/unbound-method": "warn",
78+
"jest/no-conditional-expect": "warn"
79+
}

.github/linters/.markdown-lint.yml

Lines changed: 18 additions & 0 deletions
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

Lines changed: 10 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
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
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: "16"
17+
node-version: "20"
1818
cache: "yarn"
19-
19+
2020
- run: |
2121
yarn
2222
- run: |
23-
yarn all
23+
yarn all

0 commit comments

Comments
 (0)