Hi i want to install eslint (like i do for my react projects). However, i am not entirely sure how to do this:
I installed it through node and then did eslint init.
It seems like a package.json is necessary?
would the below be ok? (For react i would precede these steps by doing npx create-react-app but i am not using react in this instance)
- do npx init
- then install eslint
- then do eslint --init
C:\Users\Yaz\freecodecamp-projects\tributes>eslint --init
? How would you like to use ESLint? To check syntax and find problems
? What type of modules does your project use? None of these
? Which framework does your project use? None of these
? Does your project use TypeScript? No
? Where does your code run? Browser
? What format do you want your config file to be in? JavaScript
Could not find a package.json file. Run 'npm init' to create one.
thanks. if someone could help would be appreciated.