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 all remaining templates folders to import/order #58462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a couple of nitpicks; not bad, given the scope of this changeset!
apps/src/templates/projects/frozenProjectInfoDialog/FrozenProjectInfoDialog.tsx
Outdated
Show resolved
Hide resolved
@@ -445,4 +445,3 @@ tr.introjs-showElement > th { | |||
z-index: 1; | |||
opacity: 0; | |||
} | |||
/*# sourceMappingURL=introjs.css.map */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's back! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uuuugh, haven't merged my fix yet
This reverts commit 04e47f2.
# Conflicts: # apps/src/templates/rubrics/introjs.scss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comment nits, but for the most part this LGTM!
import PropTypes from 'prop-types'; | ||
import style from './rubrics.module.scss'; | ||
import i18n from '@cdo/locale'; | ||
// Disabling import/order rule for this file because product tour imports are grouped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: stray comment
import {DELETE_SUCCESS} from './deleteDialog/deleteProjectDialogRedux'; | ||
import {channels as channelsApi} from '../../clientApi'; | ||
import LibraryClientApi from '@cdo/apps/code-studio/components/libraries/LibraryClientApi'; | ||
// Disabling import order due to circular dependencies errors from build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still like to see some more specificity here about what exactly the circular dependency is. One purpose for comments like this is to help future developers identify when the exception to the norm we've introduced could be removed.
// Disabling import order due to circular dependencies errors from build. | ||
import {DELETE_SUCCESS} from './deleteDialog/deleteProjectDialogRedux'; /* eslint-disable-line import/order */ | ||
import {channels as channelsApi} from '../../clientApi'; /* eslint-disable-line import/order */ | ||
import LibraryClientApi from '@cdo/apps/code-studio/components/libraries/LibraryClientApi'; /* eslint-disable-line import/order */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason you're disabling these line-by-line rather than as a block?
@@ -1,12 +1,18 @@ | |||
import PropTypes from 'prop-types'; | |||
import React from 'react'; | |||
import VersionRow from './VersionRow'; | |||
|
|||
// Disabling import order due to circular dependencies errors from build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, I'd like to see some more details in this comment, and I'm curious why we're disabling the rule line-by-line rather than as a group.
# Conflicts: # apps/src/templates/sessions/LockoutPanel.jsx
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: