scottdurow / building-power-apps-js-webresources

Scott's guide to building Power Apps JavaScript Web Resources using TypeScript
MIT License
24 stars 9 forks source link

Followed ESlinting instructions but cannot get to work #2

Open KeithWhatling opened 3 years ago

KeithWhatling commented 3 years ago

I tried the Eslinting instructions but cannot get them to work for the life of me. been throug it over and over and read a few articles. got me stumped! Could it be something with my setup? I have no other information to provide. Sorry.

scottdurow commented 3 years ago

Hi @KeithWhatling - What happens if you use the following at the command line:

npx eslint src

Or if you add the following scripts to package.json:

"scripts": {

"lint": "eslint src --ext .ts",
"lint:fix": "npm run lint -- --fix"

}

and then run:

npm run lint

or

npm run lint:fix

I've noticed that with a recent update to VSCode the ESLint icon doesn't appear in the footer anymore when you have the eslint extension installed.