Skip to content

Commit 0de6f93

Browse files
committed
Upgrade to react-scripts v5 (#366)
1 parent 7d4ed49 commit 0de6f93

File tree

21 files changed

+13444
-38254
lines changed

21 files changed

+13444
-38254
lines changed

.eslintrc.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
2+
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier'],
33
env: {
44
browser: true,
55
commonjs: true,
@@ -10,13 +10,12 @@ module.exports = {
1010
rules: {
1111
'jsx-a11y/href-no-hash': ['off'],
1212
'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
13-
'react/destructuring-assignment': [
14-
'warn',
15-
'always',
16-
{
17-
ignoreClassFields: false,
18-
},
19-
],
13+
'react/destructuring-assignment': ['off'],
14+
'react/function-component-definition': ['off'],
15+
'react/no-unstable-nested-components': ['off'],
16+
'react/jsx-no-useless-fragment': ['off'],
17+
'react/require-default-props': ['off'],
18+
'prettier/prettier': ['off'],
2019
'max-len': [
2120
'warn',
2221
{

.github/workflows/github-pages.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@ on:
1515
jobs:
1616
build-and-deploy:
1717
runs-on: ubuntu-latest
18+
env:
19+
HUSKY: 0
1820
steps:
1921
- name: Checkout Repository
20-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2123

2224
- name: Install dependencies and build
23-
uses: actions/setup-node@v3
25+
uses: actions/setup-node@v4
2426
with:
25-
node-version: '14'
26-
- run: npm ci
27-
- run: npm run build
27+
node-version: '22.2.0'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci --prefer-offline --no-audit --registry=https://registry.npmjs.org/
32+
timeout-minutes: 10
33+
34+
- name: Build
35+
run: npm run build
2836

2937
- name: Check GitHub Pages status
3038
uses: crazy-max/ghaction-github-status@v3

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+

.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
22.2.0
2+

0 commit comments

Comments
 (0)