Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twostoryrobot/eslint-config

Package Overview
Dependencies
Maintainers
7
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twostoryrobot/eslint-config

Two Story Robot eslint configuration

  • 2.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-76.47%
Maintainers
7
Weekly downloads
 
Created
Source

npm (scoped)

2SR eslint

The Two Story Robot sharable eslint configuration so you can lint like us.

Usage

Install the package

npm install --save-dev @twostoryrobot/eslint-config

Make sure to install the peer dependencies

npm install --save-dev eslint eslint-config-prettier eslint-plugin-jest eslint-plugin-react

If you are using NPM >5 you can also do this:

npx install-peerdeps --dev @twostoryrobot/eslint-config

Add @twostoryrobot/eslint-config (or just @twostoryrobot) or @twostoryrobot/eslint-config/react (no shortcut for the react config, sorry) to the extends of your .eslintrc.

Example: .eslintrc.js:

module.exports = {
  extends: ['@twostoryrobot/eslint-config/react']
}

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'"
}

FAQs

Package last updated on 16 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc