Skip to content

Commit b6985ef

Browse files
committed
update node 22 changes
1 parent 12a30d3 commit b6985ef

File tree

27 files changed

+31899
-26242
lines changed

27 files changed

+31899
-26242
lines changed

.eslintrc.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
module.exports = {
2-
parser: 'babel-eslint',
2+
parser: '@babel/eslint-parser',
33
env: {
44
browser: true,
55
es6: true,
66
'jest/globals': true,
77
},
88
settings: {
9+
react: {
10+
version: 'detect',
11+
},
912
'import/resolver': {
1013
node: {
1114
paths: ['src'],
@@ -23,6 +26,10 @@ module.exports = {
2326
SharedArrayBuffer: 'readonly',
2427
},
2528
parserOptions: {
29+
requireConfigFile: false,
30+
babelOptions: {
31+
presets: ['@babel/preset-react'],
32+
},
2633
ecmaFeatures: { jsx: true },
2734
ecmaVersion: 2020,
2835
sourceType: 'module',
@@ -63,5 +70,12 @@ module.exports = {
6370
'import/no-named-as-default': [0],
6471
'import/prefer-default-export': [0],
6572
'react/jsx-closing-tag-location': [0],
73+
'react/function-component-definition': [
74+
2,
75+
{
76+
namedComponents: 'arrow-function',
77+
unnamedComponents: 'arrow-function',
78+
},
79+
],
6680
},
6781
};

.github/workflows/buildAndDeploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/checkout@v2
6060
- uses: actions/setup-node@v2-beta
6161
with:
62-
node-version: '14'
62+
node-version: '22'
6363
- name: Docker login
6464
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
6565
# - name: create kubeconfig

.github/workflows/frozen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
git config --local user.name "GitHub Action"
2929
- uses: actions/setup-node@v1
3030
with:
31-
node-version: 14.x
31+
node-version: 22.x
3232
- run: npm ci
3333
- run: NODE_ENV=test npm run-script test-travis
3434
- name: version

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
git config --local user.name "GitHub Action"
2929
- uses: actions/setup-node@v1
3030
with:
31-
node-version: 14.x
31+
node-version: 22.x
3232
- run: npm ci
3333
- run: NODE_ENV=test npm run-script test-travis
3434
- name: version

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- uses: actions/setup-node@v1
2424
with:
25-
node-version: 14.x
25+
node-version: 22.x
2626
- run: npm ci
2727
- run: NODE_ENV=test npm run-script test-travis

.github/workflows/trivy_scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-node@v1
2020
with:
21-
node-version: 14.x
21+
node-version: 22.x
2222
- run: |
2323
npm ci
2424
- name: Install Trivy

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
{
88
files: '*.js',
99
options: {
10-
parser: 'jsdoc-parser',
10+
parser: 'babel',
1111
},
1212
},
1313
],

0 commit comments

Comments
 (0)