sentry.io eslint plugin
sentry.io eslint plugin
You'll first need to install ESLint:
```
$ npm i eslint --save-dev
Next, install eslint-plugin-sentry:
``
$ npm install eslint-plugin-sentry --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-sentry globally.
Add sentry to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"sentry"
]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"sentry/rule-name": 2
}
}
* Fill in provided rules here