ui
ui copied to clipboard
Lint lodash imports to prevent importing the whole library
Why This project uses lodash which is very large if the whole thing is imported. Its very easy to accidentally add the whole library as a dependency by importing a method incorrectly. We should lint the imports to help prevent this.
What Lint importing methods only.
Existing eslint rule I think can be used for this. https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/import-scope.md
@zhen0 @pleek91 should close? https://github.com/PrefectHQ/ui/pull/1107
Is #1107 the fix and this would prevent it from being broken again? Or are you saying this is no longer needed.
@pleek91 Oops, misread this issue. You're correct