eslint-plugin-try-catch-google-analytics
v0.0.0
Published
use 'tryGA' instead of 'ga'
Downloads
58
Maintainers
Readme
eslint-plugin-try-catch-google-analytics
use 'tryGA' instead of 'ga'
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-try-catch-google-analytics
:
$ npm install eslint-plugin-try-catch-google-analytics --save-dev
Usage
Add try-catch-google-analytics
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"try-catch-google-analytics"
]
}
Next add try-catch-google-analytics
to the rules section of .eslint.rc
:
{
"rules": {
"try-catch-google-analytics/try-catch-google-analytics": 2
}
}