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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors