0.4.0 • Published 5 years ago
@fujitsusweden/eslint-config-standard v0.4.0
eslint-config-standard
What is it
A shareable ESLint config.
How to use it
- To install it into your project:
- Run
npm install --save-dev eslint @fujitsusweden/eslint-config-standard - Run
npx eslint --init- On the question
How would you like to use ESLint?, answerTo check syntax and find problems. - Answer other questions as appropriate.
- On the question
- In your generated
.eslintrc.jsfile, changeextends: "eslint:recommended"toextends: "@fujitsusweden/standard"
- Run
- To check for problems, run
npx eslint .(and if you use Vue, add--ext .js,.vue.) - To check for problems and also let ESLint fix everything it can, run
npx eslint . --fix(and if you use Vue, add--ext .js,.vue.)
Development
Run ./script without arguments for help