0.0.0 • Published 5 years ago
eslint-plugin-try-catch-google-analytics v0.0.0
eslint-plugin-try-catch-google-analytics
use 'tryGA' instead of 'ga'
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-try-catch-google-analytics:
$ npm install eslint-plugin-try-catch-google-analytics --save-devUsage
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
}
}0.0.0
5 years ago