What happened?
npm run lint fails in the webapp on current master.
What did you expect?
The documented web dashboard lint command should pass without errors so contributors can use it as a local quality gate.
Steps to reproduce
- Clone the repository.
- Run
cd webapp.
- Run
npm install.
- Run
npm run lint.
Observed errors
src/components/Sidebar.tsx: five @typescript-eslint/no-unused-vars errors for unused _ parameters in icon props.
src/pages/Jobs.tsx: react-hooks/set-state-in-effect error because loadJobs() synchronously calls setJobs() from an effect.
Environment
- OS: Windows
- Node/npm: repository
webapp/package-lock.json dependencies
- AnakinScraper version:
c875d37
What happened?
npm run lintfails in the webapp on currentmaster.What did you expect?
The documented web dashboard lint command should pass without errors so contributors can use it as a local quality gate.
Steps to reproduce
cd webapp.npm install.npm run lint.Observed errors
src/components/Sidebar.tsx: five@typescript-eslint/no-unused-varserrors for unused_parameters in icon props.src/pages/Jobs.tsx:react-hooks/set-state-in-effecterror becauseloadJobs()synchronously callssetJobs()from an effect.Environment
webapp/package-lock.jsondependenciesc875d37