apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.69k stars 19.62k forks source link

[Bug] import * as echarts from echarts is failing linting #20448

Open NavneetVaid opened 4 weeks ago

NavneetVaid commented 4 weeks ago

Version

5.4.3

Link to Minimal Reproduction

NA

Steps to Reproduce

Try importing echarts like import * as echarts from echarts and it will fail linting with eslint 9+ saying Rule: "import/no-deprecated" failed.

It works with const echarts = require('echarts/lib/echarts');

Current Behavior

It is failing with import

Expected Behavior

It should pass linting with both imports

Environment

- OS:macOS Sonoma
- Browser: Chrome
- Framework: Angular 18

Any additional comments?

No response

echarts-bot[bot] commented 4 weeks ago

@NavneetVaid Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.