Skip to content

Commit 23eaad8

Browse files
authored
Merge pull request #107 from samuel-gomez/feature/update-deps-20240208
Feature/update deps 20240208
2 parents 1198fb9 + d28621f commit 23eaad8

File tree

141 files changed

+1058
-974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+1058
-974
lines changed

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx --no -- commitlint --edit "$1" ||
52
(
63
echo '🤢 ❌ Le nom du commit ne respecte pas les conventions';

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
echo '🏗️👷 Styling your project before committing'
52

63
# Check and Fix Prettier standards / ESLint Standards

.husky/pre-push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
51
# If everything passes... Now we can commit
62
echo '🏗️👷 Testing and building your project before pushing.'
73

package-lock.json

Lines changed: 287 additions & 350 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-starter-vitejs",
33
"description": "This repository is a starter project that use React Toolkit Axa and Vite.",
4-
"version": "0.5.5",
4+
"version": "1.0.0",
55
"private": true,
66
"type": "module",
77
"scripts": {
@@ -18,51 +18,51 @@
1818
"prettier:fix": "prettier --write src",
1919
"check": "npm run prettier && npm run lint",
2020
"fix": "npm run prettier:fix && npm run lint:fix",
21-
"prepare": "husky install",
21+
"prepare": "husky",
2222
"cz": "cz",
2323
"clean": "cd ./scripts && npm i && npm start && cd .. && npx rimraf ./scripts",
2424
"copy": "cd ./scripts && npm i && npm run copy"
2525
},
2626
"dependencies": {
27-
"@axa-fr/react-oidc": "7.12.12",
27+
"@axa-fr/react-oidc": "7.15.4",
2828
"@axa-fr/react-toolkit-all": "2.2.0",
2929
"@axa-fr/react-toolkit-core": "2.2.0",
30-
"@tanstack/react-query": "5.17.15",
31-
"@tanstack/react-query-devtools": "5.17.15",
30+
"@tanstack/react-query": "5.18.1",
31+
"@tanstack/react-query-devtools": "5.18.1",
3232
"@uiw/react-textarea-code-editor": "3.0.2",
33-
"axe-core": "4.8.3",
33+
"axe-core": "4.8.4",
3434
"cross-fetch": "4.0.0",
3535
"downloadjs": "1.4.7",
36-
"github-markdown-css": "5.5.0",
36+
"github-markdown-css": "5.5.1",
3737
"lodash": "4.17.21",
3838
"prism-react-renderer": "2.3.1",
3939
"react": "18.2.0",
4040
"react-dom": "18.2.0",
4141
"react-draggable": "4.4.6",
42-
"react-hook-form": "7.49.3",
43-
"react-live": "4.1.5",
42+
"react-hook-form": "7.50.1",
43+
"react-live": "4.1.6",
4444
"react-markdown": "9.0.1",
45-
"react-router-dom": "6.21.2",
45+
"react-router-dom": "6.22.0",
4646
"rehype-slug": "6.0.0",
4747
"remark-gfm": "4.0.0"
4848
},
4949
"devDependencies": {
50-
"@commitlint/cli": "18.4.4",
51-
"@commitlint/config-conventional": "18.4.4",
52-
"@testing-library/jest-dom": "6.2.0",
53-
"@testing-library/react": "14.1.2",
50+
"@commitlint/cli": "18.6.0",
51+
"@commitlint/config-conventional": "18.6.0",
52+
"@testing-library/jest-dom": "6.4.2",
53+
"@testing-library/react": "14.2.1",
5454
"@testing-library/react-hooks": "8.0.1",
5555
"@testing-library/user-event": "14.5.2",
5656
"@types/downloadjs": "1.4.6",
5757
"@types/jest-axe": "3.5.9",
5858
"@types/lodash": "4.14.202",
59-
"@types/node": "20.11.5",
60-
"@types/react": "18.2.48",
61-
"@types/react-dom": "18.2.18",
62-
"@typescript-eslint/eslint-plugin": "6.19.0",
63-
"@typescript-eslint/parser": "6.19.0",
59+
"@types/node": "20.11.16",
60+
"@types/react": "18.2.55",
61+
"@types/react-dom": "18.2.19",
62+
"@typescript-eslint/eslint-plugin": "6.21.0",
63+
"@typescript-eslint/parser": "6.21.0",
6464
"@vitejs/plugin-react": "4.2.1",
65-
"@vitest/coverage-v8": "1.2.0",
65+
"@vitest/coverage-v8": "1.2.2",
6666
"cz-conventional-changelog": "3.3.0",
6767
"eslint": "8.56.0",
6868
"eslint-config-airbnb": "19.0.4",
@@ -73,20 +73,20 @@
7373
"eslint-plugin-prettier": "5.1.3",
7474
"eslint-plugin-react": "7.33.2",
7575
"eslint-plugin-react-hooks": "4.6.0",
76-
"husky": "8.0.3",
76+
"husky": "9.0.10",
7777
"jest-axe": "8.0.0",
7878
"jest-cucumber": "3.0.1",
79-
"jsdom": "23.2.0",
80-
"lint-staged": "15.2.0",
81-
"msw": "2.1.2",
82-
"prettier": "3.2.4",
79+
"jsdom": "24.0.0",
80+
"lint-staged": "15.2.2",
81+
"msw": "2.1.7",
82+
"prettier": "3.2.5",
8383
"rollup-plugin-visualizer": "5.12.0",
84-
"sass": "1.69.7",
84+
"sass": "1.70.0",
8585
"serve": "14.2.1",
8686
"typescript": "5.3.3",
87-
"vite": "5.0.11",
87+
"vite": "5.1.0",
8888
"vite-tsconfig-paths": "4.3.1",
89-
"vitest": "1.2.0",
89+
"vitest": "1.2.2",
9090
"vitest-sonar-reporter": "1.0.0",
9191
"whatwg-fetch": "3.6.20"
9292
},

scripts/files/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,38 @@
1818
"prettier:fix": "prettier --write src",
1919
"check": "npm run prettier && npm run lint",
2020
"fix": "npm run prettier:fix && npm run lint:fix",
21-
"prepare": "husky install",
21+
"prepare": "husky",
2222
"cz": "cz"
2323
},
2424
"dependencies": {
25-
"@axa-fr/react-oidc": "7.12.12",
25+
"@axa-fr/react-oidc": "7.15.4",
2626
"@axa-fr/react-toolkit-all": "2.2.0",
2727
"@axa-fr/react-toolkit-core": "2.2.0",
28-
"@tanstack/react-query": "5.17.15",
29-
"@tanstack/react-query-devtools": "5.17.15",
28+
"@tanstack/react-query": "5.18.1",
29+
"@tanstack/react-query-devtools": "5.18.1",
3030
"cross-fetch": "4.0.0",
3131
"lodash": "4.17.21",
3232
"react": "18.2.0",
3333
"react-dom": "18.2.0",
34-
"react-hook-form": "7.49.3",
35-
"react-router-dom": "6.21.2"
34+
"react-hook-form": "7.50.1",
35+
"react-router-dom": "6.22.0"
3636
},
3737
"devDependencies": {
38-
"@commitlint/cli": "18.4.4",
39-
"@commitlint/config-conventional": "18.4.4",
40-
"@testing-library/jest-dom": "6.2.0",
41-
"@testing-library/react": "14.1.2",
38+
"@commitlint/cli": "18.6.0",
39+
"@commitlint/config-conventional": "18.6.0",
40+
"@testing-library/jest-dom": "6.4.2",
41+
"@testing-library/react": "14.2.1",
4242
"@testing-library/react-hooks": "8.0.1",
4343
"@testing-library/user-event": "14.5.2",
4444
"@types/jest-axe": "3.5.9",
4545
"@types/lodash": "4.14.202",
46-
"@types/node": "20.11.5",
47-
"@types/react": "18.2.48",
48-
"@types/react-dom": "18.2.18",
49-
"@typescript-eslint/eslint-plugin": "6.19.0",
50-
"@typescript-eslint/parser": "6.19.0",
46+
"@types/node": "20.11.16",
47+
"@types/react": "18.2.55",
48+
"@types/react-dom": "18.2.19",
49+
"@typescript-eslint/eslint-plugin": "6.21.0",
50+
"@typescript-eslint/parser": "6.21.0",
5151
"@vitejs/plugin-react": "4.2.1",
52-
"@vitest/coverage-v8": "1.2.0",
52+
"@vitest/coverage-v8": "1.2.2",
5353
"cz-conventional-changelog": "3.3.0",
5454
"eslint": "8.56.0",
5555
"eslint-config-airbnb": "19.0.4",
@@ -60,20 +60,20 @@
6060
"eslint-plugin-prettier": "5.1.3",
6161
"eslint-plugin-react": "7.33.2",
6262
"eslint-plugin-react-hooks": "4.6.0",
63-
"husky": "8.0.3",
63+
"husky": "9.0.10",
6464
"jest-axe": "8.0.0",
6565
"jest-cucumber": "3.0.1",
66-
"jsdom": "23.2.0",
67-
"lint-staged": "15.2.0",
68-
"msw": "2.1.2",
69-
"prettier": "3.2.4",
66+
"jsdom": "24.0.0",
67+
"lint-staged": "15.2.2",
68+
"msw": "2.1.7",
69+
"prettier": "3.2.5",
7070
"rollup-plugin-visualizer": "5.12.0",
71-
"sass": "1.69.7",
71+
"sass": "1.70.0",
7272
"serve": "14.2.1",
7373
"typescript": "5.3.3",
74-
"vite": "5.0.11",
74+
"vite": "5.1.0",
7575
"vite-tsconfig-paths": "4.3.1",
76-
"vitest": "1.2.0",
76+
"vitest": "1.2.2",
7777
"vitest-sonar-reporter": "1.0.0",
7878
"whatwg-fetch": "3.6.20"
7979
},

scripts/files/src/App/Routes/__tests__/Routes.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { PropsWithChildren } from 'react';
2-
import { render, screen, waitFor, act } from 'shared/testsUtils/customRender';
1+
import { type PropsWithChildren } from 'react';
2+
import { act, render, screen, waitFor } from 'shared/testsUtils/customRender';
33

4-
import { PROFILS } from 'shared/constants';
54
import { TITLE as TITLE_HOME } from 'pages/Home';
65
import { TITLE as TITLE_NOTFOUND } from 'pages/NotFound';
76
import { TITLE as TITLE_UNAUTHORIZE } from 'pages/Unauthorize';
7+
import { PROFILS } from 'shared/constants';
88
import Routes, { ROUTE_URLS } from '..';
99
import { RouteSecure } from '../RouteSecure';
1010

scripts/files/src/Layout/Header/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { ReactNode } from 'react';
2-
import type { Tanomaly } from 'shared/types';
3-
import { Header, Name, User, Infos } from '@axa-fr/react-toolkit-all';
1+
import { Header, Infos, Name, User } from '@axa-fr/react-toolkit-all';
42
import logo from '@axa-fr/react-toolkit-core/dist/assets/logo-axa.svg';
5-
import Skeleton from 'shared/components/Skeleton';
3+
import type { ReactNode } from 'react';
64
import Resilience from 'shared/components/Resilience';
5+
import Skeleton from 'shared/components/Skeleton';
6+
import type { Tanomaly } from 'shared/types.d';
77
import './Header.scss';
88

99
type THeaderInfo = {

scripts/files/src/pages/Home/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Layout, { TLayoutPage } from 'Layout';
1+
import Layout, { type TLayoutPage } from 'Layout';
22
import { TITLE, TITLE_BAR } from './constants';
33

44
export type THome = TLayoutPage;

src/App/Authentication/Authentication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { OidcProvider } from '@axa-fr/react-oidc';
22
import { EnvironmentContext } from 'App/EnvironmentProvider';
3-
import { ReactNode, useContext } from 'react';
3+
import { useContext, type ReactNode } from 'react';
44

55
const Authentication = ({ children, OidcProviderCmpt = OidcProvider }: { children: ReactNode; OidcProviderCmpt?: typeof OidcProvider }) => {
66
const { environment } = useContext(EnvironmentContext);

0 commit comments

Comments
 (0)