Skip to content

Commit

Permalink
chore: 🤖 updated all packages (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz206 authored Oct 1, 2024
1 parent 5955ab7 commit 81d5b09
Show file tree
Hide file tree
Showing 10 changed files with 1,293 additions and 996 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"plugin:react/recommended",
"plugin:cypress/recommended",
"plugin:jsx-a11y/recommended",
"plugin:sonarjs/recommended",
"plugin:sonarjs/recommended-legacy",
"plugin:@typescript-eslint/recommended",
"next",
"plugin:prettier/recommended"
Expand Down
2,010 changes: 1,277 additions & 733 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,33 @@
"sass": "^1.79.4"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@next/eslint-plugin-next": "^14.2.13",
"@svgr/webpack": "^8.1.0",
"@testing-library/cypress": "^10.0.2",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^14.2.1",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.13",
"@types/react": "18.3.10",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"core-js": "^3.38.1",
"cypress": "^13.15.0",
"cypress-axe": "^1.5.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.2.13",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sonarjs": "^0.24.0",
"eslint-plugin-sonarjs": "^2.0.3",
"eslint-plugin-standard": "^5.0.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
Expand Down
41 changes: 0 additions & 41 deletions pages/_error.tsx

This file was deleted.

1 change: 1 addition & 0 deletions pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function getStaticProps() {
},
};
} catch (error) {
console.error(error);
return {
notFound: true,
};
Expand Down
5 changes: 3 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { links } from "../src/utils/links";
import { getAllPosts } from "../src/utils/contentfulPosts";

const HomePage = ({ posts }) => {
const renderPosts = posts.map(({ date, title, slug, imageCover }, index) => (
const renderPosts = posts.map(({ date, title, slug, imageCover }) => (
<PostList
key={index}
key={title + date}
date={date}
title={title}
slug={slug}
Expand Down Expand Up @@ -54,6 +54,7 @@ export async function getStaticProps() {
},
};
} catch (error) {
console.error(error);
return {
notFound: true,
};
Expand Down
195 changes: 0 additions & 195 deletions src/__tests__/example.test.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions src/utils/ErrorBoundry.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ describe("<ErrorBoundry/>", () => {
const Greeting = () => {
return <div>Hello World</div>;
};
const fallback = (error) => <span>Error: {error.message}</span>;
const FallbackComponent = (error) => <span>Error: {error.message}</span>;
const { getByText, unmount } = render(
<ErrorBoundary fallback={fallback}>
<ErrorBoundary fallback={<FallbackComponent />}>
<Greeting />
</ErrorBoundary>,
);
Expand All @@ -27,9 +27,9 @@ describe("<ErrorBoundry/>", () => {
throw new Error("Oh shit");
};

const fallback = (error) => <span>Error: {error.message}</span>;
const FallbackComponent = (error) => <span>Error: {error.message}</span>;
const { unmount } = render(
<ErrorBoundary fallback={fallback}>
<ErrorBoundary fallback={<FallbackComponent />}>
<Greeting />
</ErrorBoundary>,
);
Expand Down
10 changes: 0 additions & 10 deletions src/utils/toLowerCase.test.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/utils/toLowerCase.tsx

This file was deleted.

0 comments on commit 81d5b09

Please sign in to comment.