Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve more ESLint errors #206

Merged
merged 19 commits into from
Apr 26, 2024
Merged

Resolve more ESLint errors #206

merged 19 commits into from
Apr 26, 2024

Conversation

maxatdetroit
Copy link
Member

@maxatdetroit maxatdetroit commented Apr 25, 2024

Part of #120

This continues the work from #120. With the exception of one change where I found a bug (see comment on the PR) this PR is a non-operation performed via codemod.

I'm performing this refactor now because it cleans up the code a bit and makes the more substantial changes we're about to make in UXDS 2.0 easier and less error prone.

We'll merge this directly in to dev, then merge dev into branch 2.0.0-alpha1 so we have these changes in 2.0 as well.

@maxatdetroit maxatdetroit changed the base branch from 2.0.0-alpha1 to dev April 25, 2024 20:15
@maxatdetroit maxatdetroit requested a review from jedgar1mx April 25, 2024 20:18
@maxatdetroit maxatdetroit self-assigned this Apr 25, 2024
@maxatdetroit maxatdetroit changed the title Issue.1099 Resolve more ESLint errors Apr 25, 2024
@maxatdetroit maxatdetroit added cleanup bug Something isn't working labels Apr 25, 2024
@maxatdetroit maxatdetroit linked an issue Apr 25, 2024 that may be closed by this pull request
@maxatdetroit maxatdetroit marked this pull request as ready for review April 25, 2024 20:21
@@ -121,9 +120,7 @@ export default class FormCheckGroup extends HTMLElement {
while (next) {
if (
next.getAttribute('data-type') === 'radio' ||
// TODO: See CityOfDetroit/detroitmi#1099
// eslint-disable-next-line no-undef
prev.getAttribute('data-type') === 'checkbox'
Copy link
Member Author

@maxatdetroit maxatdetroit Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug. Probably a copy-paste error from the block above. prev is not defined in this scope.

@jedgar1mx jedgar1mx merged commit 8effe22 into dev Apr 26, 2024
5 checks passed
@jedgar1mx jedgar1mx deleted the issue.1099 branch April 26, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conform UXDS library to Prettier & ESLint standards
2 participants