diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index b84124aa..b8f5172c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -36,4 +36,7 @@ jobs: uses: wearerequired/lint-action@v2 with: prettier: true - prettier_dir: frontend \ No newline at end of file + prettier_dir: frontend + # Many linting errors + # eslint: true + # eslint_dir: frontend \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 347fbf13..302706a2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -83,4 +83,4 @@ "webln": "^0.3.0", "websocket": "^1.0.34" } -} \ No newline at end of file +} diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index e4b3330b..435bafb9 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -9,7 +9,7 @@ import { LearnDialog } from './Dialogs'; import { I18nextProvider } from 'react-i18next'; import i18n from './i18n'; -//Icons +// Icons import DarkModeIcon from '@mui/icons-material/DarkMode'; import LightModeIcon from '@mui/icons-material/LightMode'; import SchoolIcon from '@mui/icons-material/School'; diff --git a/frontend/src/components/AutocompletePayments.js b/frontend/src/components/AutocompletePayments.js index b688e38b..2833eebf 100644 --- a/frontend/src/components/AutocompletePayments.js +++ b/frontend/src/components/AutocompletePayments.js @@ -232,9 +232,9 @@ export default function AutocompletePayments(props) { const [val, setVal] = useState(); function optionsToString(newValue) { - var str = ''; - var arrayLength = newValue.length; - for (var i = 0; i < arrayLength; i++) { + let str = ''; + const arrayLength = newValue.length; + for (let i = 0; i < arrayLength; i++) { str += newValue[i].name + ' '; } return str.slice(0, -1); @@ -242,7 +242,7 @@ export default function AutocompletePayments(props) { function handleAddNew(inputProps) { paymentMethods.push({ name: inputProps.value, icon: 'custom' }); - var a = value.push({ name: inputProps.value, icon: 'custom' }); + const a = value.push({ name: inputProps.value, icon: 'custom' }); setVal(() => ''); if (a || a == null) { @@ -274,7 +274,7 @@ export default function AutocompletePayments(props) { {value.map((option, index) => ( ))} - + @@ -320,7 +320,7 @@ export default function AutocompletePayments(props) { ) : null ) : null} - ) : //Here goes what happens if there is no groupedOptions + ) : // Here goes what happens if there is no groupedOptions getInputProps().value.length > 0 ? (