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

Add more folder to import/order lint rule #58622

Merged
merged 4 commits into from
May 21, 2024
Merged

Add more folder to import/order lint rule #58622

merged 4 commits into from
May 21, 2024

Conversation

lfryemason
Copy link
Contributor

In order to improve code cleanliness slightly, we are rolling out an eslint rule to the entire repo that ensure .js, .jsx, .ts and .tsx files have imports automatically sorted.

We are rolling this out incrementally to prevent errors and decrease PR size. This PR removes a subset of folders from the rule exclusions.

FLUP of #57247

For PR reviewers: please double check that all comments in imports are appropriately moved with the line they are talking about.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@lfryemason lfryemason requested a review from Hamms May 15, 2024 15:49
Copy link
Contributor

@Hamms Hamms left a comment

Choose a reason for hiding this comment

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

I'd like to see one explanatory comment added, otherwise this all LGTM. Thank you!

import './styles/Weblab2View.css';

import {Config} from './Config';
import './styles/Weblab2View.css'; // eslint-disable-line import/order
Copy link
Contributor

Choose a reason for hiding this comment

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

can you also add a comment explaining why this is necessary, and which specifically of the other imports in the file we need this to before?

@lfryemason lfryemason merged commit a010a9a into staging May 21, 2024
2 checks passed
@lfryemason lfryemason deleted the lfm/eslint-11 branch May 21, 2024 15:33
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

2 participants