Forum Discussion

Alice-Jen's avatar
Alice-Jen
Frequent Visitor
1 year ago

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.

My package.json file

My eslint.config.mjs file

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

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


Best Regards

No RepliesBe the first to reply