0.0.0 • Published 4 years ago

eslint-plugin-try-catch-google-analytics v0.0.0

Weekly downloads
41
License
ISC
Repository
github
Last release
4 years ago

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
   } 
}