@sensuapp/eslint-config-flow

1.5.0 • Public • Published

Unmaintained

No longer maintained, kept for historical purposes.

@sensuapp/eslint-config-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 @sensuapp/eslint-config-flow

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config-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": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-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": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-flow",
    "@sensuapp/eslint-config-react",
  ],
  "rules": {
    "react/prop-types": "off",
  }
}

Package Sidebar

Install

npm i @sensuapp/eslint-config-flow

Weekly Downloads

0

Version

1.5.0

License

MIT

Unpacked Size

5.98 kB

Total Files

9

Last publish

Collaborators

  • jamesdphillips