Skip to content

A repository for custom es-lint rules for ThoughtSpot

Notifications You must be signed in to change notification settings

ts-blink/thoughtspot-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-thoughtspot-eslint

custom plugins for thoughtspot

Installation

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

Usage

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

Supported Rules

  • ban-window-location-search: bans the use of window.location.search in codebase

Running tests

Run mocha tests with npm test

About

A repository for custom es-lint rules for ThoughtSpot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published