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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors