custom plugins for thoughtspot
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-thoughtspot-eslint
:
$ npm install eslint-plugin-thoughtspot-eslint --save-dev
Add thoughtspot-eslint
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["thoughtspot-eslint"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"thoughtspot-eslint/rule-name": 2
}
}
- ban-window-location-search: bans the use of window.location.search in codebase
Run mocha tests with npm test