1.0.3 • Published 4 years ago
eslint-config-rwxmad v1.0.3
eslint-config-rwxmad
Extended and modified eslint:recommended configuration, with prettier plugin
Install
If you don't already have a
package.jsonfile, create one withnpm init.Then you need to install everything needed by the config:
npm install --save-dev eslint eslint-config-rwxmad- Then, add this to your
.eslintrcfile:
{
"extends": "eslint-config-rwxmad"
}You can also omit the eslint-config- and it will be automatically assumed by ESLint:
{
"extends": ["rwxmad"]
}- You can add two scripts to your package.json to lint and/or fix:
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},- Now you can manually lint your code by running
npm run lintand fix all fixable issues withnpm run lint:fix.