Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(frontend-react): ⬆️ Upgrade frontend dependencies #424

Merged
merged 17 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/frontend-react-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on: [push, pull_request]

# Defines which tool versions should be used in all workflow jobs
env:
node: '20'
pnpm: '8'
node: '22'
pnpm: '9'

defaults:
run:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Checkout 📥
uses: actions/[email protected]
- name: Setup PNPM 💿
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v4
with:
version: ${{ env.pnpm }}
- name: Setup Node 💿
Expand Down
49 changes: 0 additions & 49 deletions frontend-react/.eslintrc.cjs

This file was deleted.

87 changes: 87 additions & 0 deletions frontend-react/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import pluginReactHooks from 'eslint-plugin-react-hooks';
import pluginPrettier from 'eslint-plugin-prettier/recommended';
import pluginJsxA11y from 'eslint-plugin-jsx-a11y';
import pluginTsDoc from 'eslint-plugin-tsdoc';

const TS_CONFIG = [
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
// projectService: true,
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: import.meta.dirname
}
}
},
{
rules: {
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/consistent-type-definitions': 'off'
}
}
];

const REACT_CONFIG = [
pluginReact.configs.flat.recommended,
pluginReact.configs.flat['jsx-runtime'],
{
rules: {
'react/no-unescaped-entities': 'off'
}
},
{
settings: {
react: {
version: 'detect'
}
}
}, // eslint-plugin-react-hooks:
{
files: ['src/**/*.{js,ts,jsx,tsx}'],
plugins: {
'react-hooks': pluginReactHooks
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
...pluginReactHooks.configs.recommended.rules
}
}
];

/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}']
},
{
languageOptions: {
globals: {
...globals.browser
}
}
},
pluginJs.configs.recommended,
...TS_CONFIG,
...REACT_CONFIG,
pluginPrettier,
pluginJsxA11y.flatConfigs.strict,
{
plugins: {
tsdoc: pluginTsDoc
},
rules: {
'tsdoc/syntax': 'warn'
}
},
{
ignores: ['dist', 'types', 'node_modules', 'features', 'eslint.config.js']
}
];
112 changes: 57 additions & 55 deletions frontend-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,46 +39,46 @@
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./types/src/lib/index.d.ts"
"types": "./types/src/lib/index.d.ts",
"require": "./dist/index.cjs"
},
"./application": {
"import": "./dist/mod-application.js",
"require": "./dist/mod-application.cjs",
"types": "./types/src/lib/mod-application.d.ts"
"types": "./types/src/lib/mod-application.d.ts",
"require": "./dist/mod-application.cjs"
},
"./auth": {
"import": "./dist/mod-auth.js",
"require": "./dist/mod-auth.cjs",
"types": "./types/src/lib/mod-auth.d.ts"
"types": "./types/src/lib/mod-auth.d.ts",
"require": "./dist/mod-auth.cjs"
},
"./nats": {
"import": "./dist/mod-nats.js",
"require": "./dist/mod-nats.cjs",
"types": "./types/src/lib/mod-nats.d.ts"
"types": "./types/src/lib/mod-nats.d.ts",
"require": "./dist/mod-nats.cjs"
},
"./user-data": {
"import": "./dist/mod-user-data.js",
"require": "./dist/mod-user-data.cjs",
"types": "./types/src/lib/mod-user-data.d.ts"
"types": "./types/src/lib/mod-user-data.d.ts",
"require": "./dist/mod-user-data.cjs"
},
"./utils": {
"import": "./dist/mod-utils.js",
"require": "./dist/mod-utils.cjs",
"types": "./types/src/lib/mod-utils.d.ts"
"types": "./types/src/lib/mod-utils.d.ts",
"require": "./dist/mod-utils.cjs"
},
"./widget": {
"import": "./dist/mod-widget.js",
"require": "./dist/mod-widget.cjs",
"types": "./types/src/lib/mod-widget.d.ts"
"types": "./types/src/lib/mod-widget.d.ts",
"require": "./dist/mod-widget.cjs"
},
"./telestion.css": "./dist/style.css"
"./telestion.css": "./dist/telestion.css"
},
"types": "types/src/lib/index.d.ts",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"test": "vitest --ui",
"style": "prettier --write .",
"preview": "vite preview",
Expand All @@ -92,52 +92,54 @@
"directory": "frontend-react"
},
"dependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/utilities": "^3.2.2",
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.2",
"bootstrap-icons": "^1.11.2",
"clsx": "^2.0.0",
"nats.ws": "^1.19.1",
"react-bootstrap": "^2.9.1",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.12",
"react-router-dom": "^6.19.0",
"zod": "^3.22.4"
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.11.3",
"clsx": "^2.1.1",
"nats.ws": "^1.29.2",
"react-bootstrap": "^2.10.6",
"react-dom": "^19.0.0",
"react-error-boundary": "^4.1.2",
"react-router-dom": "^7.0.2",
"zod": "^3.23.8"
},
"peerDependencies": {
"react": "18"
"react": "19"
},
"devDependencies": {
"@cucumber/cucumber": "^10.0.1",
"@types/node": "^20.10.4",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/ui": "^1.0.4",
"eslint": "^8.53.0",
"@cucumber/cucumber": "^11.1.0",
"@eslint/js": "^9.16.0",
"@types/node": "^20.17.9",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vitejs/plugin-react-swc": "^3.7.2",
"@vitest/ui": "^2.1.8",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-tsdoc": "^0.2.17",
"happy-dom": "^12.10.3",
"prettier": "3.1.0",
"react": "^18.2.0",
"sass": "^1.69.5",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "^4.0.0-next.36",
"typedoc-plugin-mdn-links": "^3.1.6",
"typedoc-plugin-zod": "^1.1.0",
"typescript": "^5.2.2",
"vite": "^5.0.5",
"vite-plugin-banner": "^0.7.1",
"vitest": "^1.0.4"
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0-rc.1",
"eslint-plugin-tsdoc": "^0.4.0",
"globals": "^15.13.0",
"happy-dom": "^15.11.7",
"prettier": "3.4.2",
"react": "^19.0.0",
"sass": "^1.82.0",
"typedoc": "^0.27.3",
"typedoc-plugin-markdown": "^4.3.1",
"typedoc-plugin-mdn-links": "^4.0.3",
"typedoc-plugin-zod": "^1.3.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"vite": "^6.0.3",
"vite-plugin-banner": "^0.8.0",
"vitest": "^2.1.8"
},
"publishConfig": {
"access": "public"
Expand Down
Loading
Loading