This package has been deprecated

Author message:

use @twostoryrobot/eslint-config instead

@twostoryrobot/eslint

1.0.0 • Public • Published

2SR eslint

Usage

Installing the package will make a symlink in the root of your project to the eslint config in this repo. It is recommended to add .eslintrc.js to your .gitignore so you don't accidentally commit the symlink.

npm install @twostoryrobot/eslint

Make sure to install the peer dependencies

npm install eslint eslint-plugin-jest

Scripts

Now you can add a script to your project's package.json that calls eslint and it will reference the config file in the root of your project directory.

"scripts": {
  "eslint": "eslint '**/*.js'"
}

Hooks

If you install husky you can invoke eslint as a hook for various actions (precommit, prepush, etc)

"scripts": {
  "precommit": "eslint '**/*.js'"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @twostoryrobot/eslint

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • calebissharp
  • jonotron
  • chrisfosterelli
  • avvaikethees