UNPKG

eslint-config-sensu-react

Version:
38 lines (26 loc) 800 B
# eslint-config-sensu-react This package provides Sensu's React & JSX ESLint settings as an extensible configuration. ![version](http://img.shields.io/npm/v/eslint-config-sensu-react.svg?style=flat-square) ![license](http://img.shields.io/npm/l/eslint-config-sensu-react.svg?style=flat-square) ![build](https://img.shields.io/travis/sensu/eslint-config-sensu/master.svg?style=flat-square) ## Usage First, add the package to your project. ```sh yarn add --dev eslint eslint-config-sensu-react # or with npm npm install --save-dev eslint eslint-config-sensu-react ``` If you did not already have an `.eslintrc` file you can add one. ```sh ./node_modules/.bin/eslint --init ``` Finally, add the following to your `.eslintrc`. ```json { "extends": [ "sensu", "sensu-react" ] } ```