1.3.0 • Published 6 years ago

eslint-config-sensu-flow v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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