Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Alice-Jen
Frequent Visitor

npm run lint error--Invalid option '--ext' - perhaps you meant '-c'?

Hi,

I encountered en error when I excuted : npm run lint

It shows 

> lint
> npx eslint . --ext .js,.jsx,.ts,.tsx

Invalid option '--ext' - perhaps you meant '-c'?
You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.

AliceJen_0-1729856487481.png

My package.json file

AliceJen_1-1729856529470.png

My eslint.config.mjs file

AliceJen_2-1729856574931.png

I checked this because we want to get  certivication from Microsoft for our custom visual . I checked file requirements as below.

AliceJen_3-1729856701361.png

Get your Power BI visuals certified - Power BI | Microsoft Learn


Best Regards

0 REPLIES 0

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors