Skip to content

Commit

Permalink
Merge pull request #7 from isour/patch-2
Browse files Browse the repository at this point in the history
Update .eslintrc.yml
  • Loading branch information
dzencot authored Jun 4, 2024
2 parents c784a63 + 00a5211 commit 541864b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions frontend/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions frontend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* eslint-disable functional/no-expression-statement */

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());
2 changes: 2 additions & 0 deletions frontend/src/init.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 541864b

Please sign in to comment.