Skip to content

Commit bd39695

Browse files
author
Seto Elkahfi
authored
Use Node 20 (#19)
* Use Node 20 * update package-lock * Update dependencies * Use @vercel/ncc * Use ts 5 * Use latest jest
1 parent 8f297a9 commit bd39695

File tree

7 files changed

+37632
-30481
lines changed

7 files changed

+37632
-30481
lines changed

.eslintrc.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"plugins": ["jest", "@typescript-eslint"],
3-
"extends": ["plugin:github/es6"],
2+
"plugins": ["jest", "@typescript-eslint", "github"],
3+
"extends": ["plugin:github/recommended"],
44
"parser": "@typescript-eslint/parser",
55
"parserOptions": {
66
"ecmaVersion": 9,
@@ -16,13 +16,13 @@
1616
"@typescript-eslint/no-require-imports": "error",
1717
"@typescript-eslint/array-type": "error",
1818
"@typescript-eslint/await-thenable": "error",
19-
"@typescript-eslint/ban-ts-ignore": "error",
19+
//"@typescript-eslint/ban-ts-ignore": "error",
2020
"camelcase": "off",
21-
"@typescript-eslint/camelcase": "error",
22-
"@typescript-eslint/class-name-casing": "error",
21+
//"@typescript-eslint/camelcase": "error",
22+
//"@typescript-eslint/class-name-casing": "error",
2323
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2424
"@typescript-eslint/func-call-spacing": ["error", "never"],
25-
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
25+
//"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
2626
"@typescript-eslint/no-array-constructor": "error",
2727
"@typescript-eslint/no-empty-interface": "error",
2828
"@typescript-eslint/no-explicit-any": "error",
@@ -32,23 +32,24 @@
3232
"@typescript-eslint/no-misused-new": "error",
3333
"@typescript-eslint/no-namespace": "error",
3434
"@typescript-eslint/no-non-null-assertion": "warn",
35-
"@typescript-eslint/no-object-literal-type-assertion": "error",
35+
//"@typescript-eslint/no-object-literal-type-assertion": "error",
3636
"@typescript-eslint/no-unnecessary-qualifier": "error",
3737
"@typescript-eslint/no-unnecessary-type-assertion": "error",
3838
"@typescript-eslint/no-useless-constructor": "error",
3939
"@typescript-eslint/no-var-requires": "error",
4040
"@typescript-eslint/prefer-for-of": "warn",
4141
"@typescript-eslint/prefer-function-type": "warn",
4242
"@typescript-eslint/prefer-includes": "error",
43-
"@typescript-eslint/prefer-interface": "error",
43+
//"@typescript-eslint/prefer-interface": "error",
4444
"@typescript-eslint/prefer-string-starts-ends-with": "error",
4545
"@typescript-eslint/promise-function-async": "error",
4646
"@typescript-eslint/require-array-sort-compare": "error",
4747
"@typescript-eslint/restrict-plus-operands": "error",
4848
"semi": "off",
4949
"@typescript-eslint/semi": ["error", "never"],
5050
"@typescript-eslint/type-annotation-spacing": "error",
51-
"@typescript-eslint/unbound-method": "error"
51+
"@typescript-eslint/unbound-method": "error",
52+
"i18n-text/no-en": "off"
5253
},
5354
"env": {
5455
"node": true,

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ jobs:
77
build: # make sure build/ci work properly
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
13-
node-version: '16'
13+
node-version: '20'
1414
- run: |
1515
npm install
1616
npm run all
1717
test: # make sure the action works on a clean machine without building
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
2222
with:
23-
node-version: '16'
23+
node-version: '20'
2424
- uses: ./
2525
with:
2626
milliseconds: 1000

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ author: 'Simon Nyberg'
66
# description: 'input description here'
77
# default: 'default value if applicable'
88
runs:
9-
using: 'node16'
9+
using: 'node20'
1010
main: 'dist/index.js'

0 commit comments

Comments
 (0)