+
+
+
+
+
-
+
+
+
+
+
+
-
+
+
- );
-};
+
+);
From 7873ff01e183f2296994a13f5f19f1330810075b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Wed, 20 Mar 2024 14:11:59 +0100
Subject: [PATCH 07/12] Update MoviesList 2
---
src/components/MoviesList/MoviesList.tsx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/components/MoviesList/MoviesList.tsx b/src/components/MoviesList/MoviesList.tsx
index 4e225ba28..52e13c081 100644
--- a/src/components/MoviesList/MoviesList.tsx
+++ b/src/components/MoviesList/MoviesList.tsx
@@ -1,16 +1,17 @@
+/* eslint-disable max-len */
import React from 'react';
import './MoviesList.scss';
-import { MovieCard } from '../MovieCard';
import { Movie } from '../../types/Movie';
+import { MovieCard } from '../MovieCard';
-interface Props {
+type Props = {
movies: Movie[];
-}
+};
export const MoviesList: React.FC
= ({ movies }) => (
- {movies.map((movie) => (
-
+ {movies.map(movie => (
+
))}
);
From 8e6d047556a4959314fba96b822feadfee6f0e94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Wed, 20 Mar 2024 15:06:44 +0100
Subject: [PATCH 08/12] Update Lint
---
.eslintrc.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 7c6c7923c..53eea4d64 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,6 +1,5 @@
module.exports = {
extends: [
- '@mate-academy/eslint-config-react-typescript',
'plugin:cypress/recommended',
],
rules: {},
From 8f7e013479ce741f823f9db9478d7fb8dde6f0ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Wed, 20 Mar 2024 15:48:57 +0100
Subject: [PATCH 09/12] Update Lint 2
---
.eslintrc.js | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 53eea4d64..aeb79e7e2 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,6 +1,12 @@
module.exports = {
- extends: [
- 'plugin:cypress/recommended',
- ],
- rules: {},
+ extends: ['@mate-academy/eslint-config-react-typescript', 'plugin:cypress/recommended'],
+ rules: {
+ 'max-len': ['error', {
+ ignoreTemplateLiterals: true,
+ ignoreComments: true,
+ }],
+ 'jsx-a11y/label-has-associated-control': ["error", {
+ assert: "either",
+ }],
+ },
};
From 98fd48c74100cfb7803b6c11fb89b01afcad3c90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Wed, 20 Mar 2024 16:46:14 +0100
Subject: [PATCH 10/12] Update Lint 3
---
.eslintrc.js | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index aeb79e7e2..53eea4d64 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,12 +1,6 @@
module.exports = {
- extends: ['@mate-academy/eslint-config-react-typescript', 'plugin:cypress/recommended'],
- rules: {
- 'max-len': ['error', {
- ignoreTemplateLiterals: true,
- ignoreComments: true,
- }],
- 'jsx-a11y/label-has-associated-control': ["error", {
- assert: "either",
- }],
- },
+ extends: [
+ 'plugin:cypress/recommended',
+ ],
+ rules: {},
};
From 48d54eeb4ba21e928e193af6a19911662d56edfc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Mon, 25 Mar 2024 00:48:55 +0100
Subject: [PATCH 11/12] Update package.json
---
package.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 8edf0ad31..c25021e80 100644
--- a/package.json
+++ b/package.json
@@ -17,13 +17,13 @@
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@mate-academy/eslint-config-react-typescript": "latest",
- "@mate-academy/scripts": "^1.7.8",
+ "@mate-academy/scripts": "^1.7.9",
"@mate-academy/students-ts-config": "latest",
"@mate-academy/stylelint-config": "latest",
"@types/node": "^16.18.80",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
- "cypress": "^12.17.4",
+ "cypress": "^13.7.0",
"eslint": "^7.32.0",
"eslint-plugin-cypress": "^2.11.2",
"gh-pages": "^6.1.1",
From 8d764ab4ae7b1f4f153a1fe0691079fc3764c698 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20G=C3=B3rski?=
<158020641+itsXenthis@users.noreply.github.com>
Date: Mon, 25 Mar 2024 00:52:27 +0100
Subject: [PATCH 12/12] Update .eslintrc.js
---
.eslintrc.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/.eslintrc.js b/.eslintrc.js
index 53eea4d64..7c6c7923c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,6 @@
module.exports = {
extends: [
+ '@mate-academy/eslint-config-react-typescript',
'plugin:cypress/recommended',
],
rules: {},