grafana / grafana/plugin-tools

Lodash eslint rules for better tree-shaking

Open
#2,731 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
89
Forks
57
Avg merge
3d 17h
Merged PRs (30d)
37

Description

Despite `lodash` being on the external list, certain approaches to importing from `lodash` increase plugin bundle size more than others.

Perhaps we can integrate some eslint-plugin-lodash rules to enforce better tree-shaking in plugins?

- https://www.npmjs.com/package/eslint-plugin-lodash
- https://github.com/idok/eslint-plugin-lodash

Or...

- https://www.npmjs.com/package/eslint-plugin-tree-shaking
- https://github.com/lukastaegert/eslint-plugin-tree-shaking

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.