Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eslint-config-sensu-flow

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-sensu-flow

Sensu's ESLint config (for use with Flow.)

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

eslint-config-sensu-flow

This package provides Sensu's Flowtype ESLint settings as an extensible configuration.

version license build

Usage

First, add the package to your project.

yarn add --dev eslint eslint-config-sensu-flow

# or with npm

npm install --save-dev eslint eslint-config-sensu-flow

If you did not already have an .eslintrc file you can add one.

./node_modules/.bin/eslint --init

Finally, add the following to your .eslintrc.

{
  "extends": [
    "sensu",
    "sensu-flow"
  ]
}

React

When used in concert with React you may want to remove the prop-types rule as it will likely be duplicate effort. To do so add the following to your .eslintrc file.

{
  "extends": [
    "sensu",
    "sensu-flow",
    "sensu-react"
  ],
  "rules": {
    "react/prop-types": "off",
  }
}

Keywords

eslint

FAQs

Package last updated on 15 May 2018

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