eslint-config-mtdirect

1.0.0 • Public • Published

eslint-config-mtdirect

Standard eslint configuration for MT Direct packages

Installation

$ npm install --save-dev eslint eslint-config-mtdirect eslint-plugin-import eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-react eslint-plugin-standard prettier

Sorry there are so many dependencies that need to be installed with this! Maybe some day this won't be necessary; See eslint issue #3458.

Then, add mtdirect to the "extends" array in your .eslintrc.json file.

{
  "extends": [
    "mtdirect"
  ]
}

And finally, add the following scripts under "scripts" in your package.json:

"lint": "eslint **/*.js",
"lint:fix": "npm run lint -- --fix",

It is recommented to also prepend npm run lint && to your "test" script, if you have one.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-mtdirect

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • manitoulin-transport