Skip to content

Commit

Permalink
Update to React 19 and lots of other dependencies (#48)
Browse files Browse the repository at this point in the history
* Update some non-breaking dependencies and bump to node 22

* Update deploy action too

* Update vite-plugin-svgr

* Upgrade to ESLint 9 and latest TypeScript

* Upgrade to prettier 3

* Remove Reach UI and replace with Radix UI Tabs

* Upgrade to latest React and Vite

* Run npm update

* Open exclusions tab in spec
  • Loading branch information
BrianMitchL authored Feb 6, 2025
1 parent a769a9f commit 732bed9
Show file tree
Hide file tree
Showing 22 changed files with 4,345 additions and 5,740 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'
- name: Install deps
run: npm ci
- run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'
- name: Install deps
run: npm ci
- name: Build app
Expand Down
27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import testingLibrary from 'eslint-plugin-testing-library';
import eslintConfigPrettier from 'eslint-config-prettier';

export default tseslint.config(
{
settings: {
react: {
version: 'detect',
},
},
},
eslint.configs.recommended,
tseslint.configs.recommended,
tseslint.configs.strict,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
reactHooks.configs['recommended-latest'],
{
files: ['**/*{spec,test}.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
...testingLibrary.configs['flat/react'],
},
eslintConfigPrettier,
);
Loading

0 comments on commit 732bed9

Please sign in to comment.