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

Use login.gov shared ESLint configuration #476

Merged
merged 1 commit into from Sep 22, 2021
Merged

Conversation

aduth
Copy link
Member

@aduth aduth commented Sep 9, 2021

See: 18F/identity-idp#5359

Why: So that we can use a common standard ruleset across all repositories where JavaScript is used.

Notes:

  • Doesn't yet incorporate Prettier, since that will be a significant number of changes that can be safely be applied separately.
  • Removes PostCSS configuration. This follows a similar removal in IdP, and we don't appear to be using import inlining. Flexbugs and env settings seem most applicable to legacy browsers like Internet Explorer, but we appear to already be targeting newer browsers with e.g. unpolyfilled usage of modern JavaScript like String#includes.A quick check in Internet Explorer does not reveal any obvious breakage where we depend on these transforms.

See: 18F/identity-idp#5359

**Why:** So that we can use a common standard ruleset across all repositories where JavaScript is used.

Notes:

- Doesn't yet incorporate Prettier, since that will be a significant number of changes that can be safely be applied separately.
- Removes PostCSS configuration. This follows a [similar removal in IdP](18F/identity-idp#4260), and we don't appear to be using [import inlining](https://github.com/postcss/postcss-import). Flexbugs and env settings seem most applicable to legacy browsers like Internet Explorer, but we appear to already be targeting newer browsers with e.g. [unpolyfilled usage of modern JavaScript like String#includes](https://github.com/18F/identity-dashboard/blob/abb55d8efa906f3db62ffa93f02b2d52e1bfacad/app/javascript/app/service-provider-form.js#L76).A quick check in Internet Explorer does not reveal any obvious breakage where we depend on these transforms.
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@aduth
Copy link
Member Author

aduth commented Sep 17, 2021

@russbeye I was going to wait for #475 to be merged to deal with the inevitable merge conflicts here. Do you know if that'll be merged soon, or would you be okay if I merge this now and you rebase and solve the conflicts yourself in #475? Happy to help with that, of course.

@russbeye
Copy link
Contributor

@aduth Feel free to merge away, as we've been torn with other support work for the time being. I can handle resolving any issues past that no problem. Thanks for the heads up!

@aduth
Copy link
Member Author

aduth commented Sep 22, 2021

Great, thanks @russbeye 🙏

@aduth aduth merged commit 1c85df3 into main Sep 22, 2021
@aduth aduth deleted the aduth-shared-eslint-config branch September 22, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants