Closed adamscarberry closed 2 months ago
@adamscarberry , my main issue was actually with the .eslintrc.cjs file. Mind if I push a commit containing some edits there to this or should I do it as a separate PR?
@jbkolze Yea go ahead and include since it's linting related. I would like to also include eslint-plugin-jsx-a11y
in our devDependencies and configure in eslintrc.cjs, but didn't want to throw too much at once.
example: https://github.com/USACE/a2w-ui/blob/main/.eslintrc.cjs
Eventually we should setup a workflow for linting test on PR creation and fails are unable to merge.
@adamscarberry I threw in what I had in mind as a starting point. Basically standard defaults with a couple tweaks to not drown in error hell in existing files (based on what I checked, at least). Agree with jsx-a11y -- will let you handle that part since I don't have a lot of experience with it.
Feel free to adjust as needed / preferred.
Just for clarification -- I think the typescript linting stuff was a remnant from the initial groundwork build using styled-components and typescript. Typescript was completely ripped out when the shift to tailwind happened. I think the .eslint was just the last piece that got missed.
I think I'm done with changes on this one.
There's going to be some extra changed due to prettier differences (I use single quotes). If we want to decide on common formatting that includes double quotes I can fix this before merging.
https://github.com/USACE/groundwork/issues/34