1.0.3 • Published 4 years ago

eslint-config-rwxmad v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

eslint-config-rwxmad

npm npm peer dependency version (scoped)

Extended and modified eslint:recommended configuration, with prettier plugin

Install

  1. If you don't already have a package.json file, create one with npm init.

  2. Then you need to install everything needed by the config:

npm install --save-dev eslint eslint-config-rwxmad
  1. Then, add this to your .eslintrc file:
{
  "extends": "eslint-config-rwxmad"
}

You can also omit the eslint-config- and it will be automatically assumed by ESLint:

{
  "extends": ["rwxmad"]
}
  1. You can add two scripts to your package.json to lint and/or fix:
"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
},
  1. Now you can manually lint your code by running npm run lint and fix all fixable issues with npm run lint:fix.