From c5d65384a8270bb3ed6d940ec629254a0a89f896 Mon Sep 17 00:00:00 2001 From: isour Date: Fri, 29 Mar 2024 15:14:11 +0800 Subject: [PATCH 1/3] Update .eslintrc.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit не верные имена свойств, functional/no-return-void: 0 потому что в проекте просит типы для таких функций --- frontend/.eslintrc.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/.eslintrc.yml b/frontend/.eslintrc.yml index f67c348..95bd760 100644 --- a/frontend/.eslintrc.yml +++ b/frontend/.eslintrc.yml @@ -29,12 +29,13 @@ rules: react/prop-types: 0 no-console: 0 react/react-in-jsx-scope: 0 - functional/no-conditional-statement: 0 - functional/no-expression-statement: 0 + functional/no-conditional-statements: 0 + functional/no-expression-statements: 0 functional/immutable-data: 0 functional/functional-parameters: 0 - functional/no-try-statement: 0 - functional/no-throw-statement: 0 + functional/no-try-statements: 0 + functional/no-throw-statements: 0 + functional/no-return-void: 0 no-underscore-dangle: [2, { "allow": ["__filename", "__dirname"] }] react/function-component-definition: [2, { "namedComponents": "arrow-function" }] testing-library/no-debug: 0 From 11c67fc12c426391e5c95453f44d3020e68ac019 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 4 Jun 2024 13:54:36 +0500 Subject: [PATCH 2/3] fix lint errors --- frontend/src/index.js | 8 ++------ frontend/src/init.jsx | 2 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/index.js b/frontend/src/index.js index 9e5eb6b..e75df9d 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,9 +1,5 @@ import ReactDOM from 'react-dom/client'; import init from './init.jsx'; -const app = async () => { - const root = ReactDOM.createRoot(document.getElementById('root')); - root.render(await init()); -}; - -app(); +const root = ReactDOM.createRoot(document.getElementById('root')); +root.render(await init()); diff --git a/frontend/src/init.jsx b/frontend/src/init.jsx index 032e94b..779c780 100644 --- a/frontend/src/init.jsx +++ b/frontend/src/init.jsx @@ -1,3 +1,5 @@ +/* eslint-disable functional/no-expression-statement */ + import i18next from 'i18next'; import { I18nextProvider, initReactI18next } from 'react-i18next'; import App from './components/App'; From 00a5211cc6805d0a2087086f6f0f01aa3931f8c7 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 4 Jun 2024 13:58:11 +0500 Subject: [PATCH 3/3] fix lint errors --- frontend/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/index.js b/frontend/src/index.js index e75df9d..07a3bfd 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,3 +1,5 @@ +/* eslint-disable functional/no-expression-statement */ + import ReactDOM from 'react-dom/client'; import init from './init.jsx';