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, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors
Top Kudoed Authors