-
Notifications
You must be signed in to change notification settings - Fork 52
add eslint with our standard config #87
Comments
npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-prettier eslint-plugin-prettier I have had to add the following to the env: {
node: true,
}, Need to fix a couple of TypeScript errors as well. |
- Added ESLint + plugins for TypeScript and Prettier. - Added the standard config + env: {node: true,} to keep TypeScript happy. - Fixed all the errors that were preventing the app from compiling. Closes #87.
Hi @kkyeboah , @jpetto - here is that TypeScript issue I was talking about in our most recent conversation, where I had to make a change that doesn't make much sense just to keep TS happy. In const handleChange = (event: React.ChangeEvent<{}>, newValue: number) => { to const handleChange = (
event: React.ChangeEvent<unknown>,
newValue: number
) => { rather than use This is not a TypeScript issue as such - it is a Material UI problem. It has been discussed at length in the MUI repository: mui/material-ui#17454 and eventually fixed for MUI v.5 (currently in alpha) but they won't be backporting it to v.4. The ESLint rule that didn't allow me to use the old code is
I'm not sure if using |
The text was updated successfully, but these errors were encountered: