don't import * unless essential #1190
Labels
i-good-first-issue
This issue is probably a good starting point for people new to coding or the OED project.
p-low-priority
t-enhancement
This issues tracks a potential improvement to the software
Milestone
Is your feature request related to a problem? Please describe.
lodash is often imported as
import * as _ from 'lodash';
. A few newer places only do the needed items from lodash. OED would like to change to only import what is needed in each file.Describe the solution you'd like
See src/client/app/components/LineChartComponent.tsx that does
import { debounce } from 'lodash';
as an example of what is desired.Describe alternatives you've considered
Leave as is and have extra items available with possible misuse.
Additional context
None
The text was updated successfully, but these errors were encountered: