0.1.1 • Published 9 months ago

@infinumrails/eslint-config-js v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

eslint-config-js

Shareable config for ESLint.

Setup

Add eslint and @infinumrails/eslint-config-js to your (dev) dependencies:

yarn add --dev eslint @infinumrails/eslint-config-js

Add the following to package.json:

{
  "scripts": {
    "lint-js": "eslint",
  },
  "eslintConfig": {
    "extends": "@infinumrails/eslint-config-js"
  }
}

Run yarn lint-js [directory] to lint JS code. Run yarn lint-js --fix [directory] to automatically fix found offenses.