Skip to content
Snippets Groups Projects
Verified Commit 4f8c56de authored by Mark Florian's avatar Mark Florian :two:
Browse files

Fix import/no-unresolved violations

This change makes sure that these import paths are checked by the
import/no-unresolved ESLint rule by making sure that the path resolves
to an actual file when FOSS_ONLY=1.

Since the files are empty, it makes sense not to attempt to fetch them,
which is why they're still guarded by an IS_EE check.
parent df260a25
No related branches found
No related tags found
1 merge request!85948Update dependency @gitlab/eslint-plugin to v12.3.0
......@@ -54,24 +54,23 @@ export default class IssuableBulkUpdateSidebar {
new MilestoneSelect();
subscriptionSelect();
// Checking IS_EE and using ee_else_ce is odd, but we do it here to satisfy
// the import/no-unresolved lint rule when FOSS_ONLY=1, even though at
// runtime this block won't execute.
if (IS_EE) {
import('ee/vue_shared/components/sidebar/health_status_select/health_status_bundle')
import('ee_else_ce/vue_shared/components/sidebar/health_status_select/health_status_bundle')
.then(({ default: HealthStatusSelect }) => {
HealthStatusSelect();
})
.catch(() => {});
}
if (IS_EE) {
import('ee/vue_shared/components/sidebar/epics_select/epics_select_bundle')
import('ee_else_ce/vue_shared/components/sidebar/epics_select/epics_select_bundle')
.then(({ default: EpicSelect }) => {
EpicSelect();
})
.catch(() => {});
}
if (IS_EE) {
import('ee/vue_shared/components/sidebar/iterations_dropdown_bundle')
import('ee_else_ce/vue_shared/components/sidebar/iterations_dropdown_bundle')
.then(({ default: iterationsDropdown }) => {
iterationsDropdown();
})
......
// This empty file satisfies the import/no-unresolved rule for ee_else_ce imports.
// This empty file satisfies the import/no-unresolved rule for ee_else_ce imports.
// This empty file satisfies the import/no-unresolved rule for ee_else_ce imports.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment