Skip to content

Commit e770816

Browse files
committed
fix: исправлены ошибки линтеров в jsx файлах
1 parent 2247616 commit e770816

8 files changed

Lines changed: 16 additions & 1 deletion

File tree

lessons/lesson31/examples/examplePage/ExamplePage.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable react/prop-types */
2+
/* eslint-disable react/display-name */
3+
/* eslint-disable react/react-in-jsx-scope */
14
import React, { useState, memo, useMemo, useCallback } from "react";
25

36
const heavyDouble = (num) => {

lessons/lesson31/examples/examplePage/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react/prop-types */
2+
/* eslint-disable react/react-in-jsx-scope */
13
import { useState } from "react";
24

35
// const heavyDouble = (num) => {

lessons/lesson31/examples/useCallbackPage/CounterButton.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable react/prop-types */
2+
/* eslint-disable react/display-name */
3+
/* eslint-disable react/react-in-jsx-scope */
14
import { memo } from "react";
25

36
// Дочерний компонент, который мы хотим оптимизировать

lessons/lesson31/examples/useCallbackPage/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/react-in-jsx-scope */
12
import { useCallback, useState } from "react";
23

34
import { CounterButton } from "./CounterButton";
@@ -47,7 +48,7 @@ function UseCallbackPage() {
4748
Принудительный перерендер ({dummy})
4849
</button>
4950

50-
<p>Откройте консоль и нажимайте "Принудительный перерендер"</p>
51+
<p>Откройте консоль и нажимайте Принудительный перерендер</p>
5152
</div>
5253
);
5354
}

lessons/lesson31/examples/useEffectPage/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react/prop-types */
2+
/* eslint-disable react/react-in-jsx-scope */
13
import { useEffect, useState } from "react";
24

35
// 1. Не передать ничего

lessons/lesson31/examples/useMemoPage/TodoList.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react/react-in-jsx-scope */
2+
/* eslint-disable react/prop-types */
13
import { useMemo } from "react";
24

35
export default function TodoList({ todos, filter }) {

lessons/lesson31/examples/useMemoPage/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/react-in-jsx-scope */
12
import { useState } from "react";
23
import TodoList from "./TodoList";
34

lessons/lesson31/examples/useStatePage/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/react-in-jsx-scope */
12
import { useState } from "react";
23
import code from "./../../assets/useState.png";
34

0 commit comments

Comments
 (0)