MicroStrategy ONE

Modify ESLint Rules

ESLint is an open-source JavaScript linting utility. Linting is the process of analyzing code to identify problematic patterns or code that does not adhere to style guidelines. We have integrated ESLint into the Custom Visualization Tool with Airbnb's popular and commonly used JavaScript style guide. MicroStrategy has incorporated a pre-commit git hook to check code style. If necessary, you can modify the ESLint rules or remove the code check altogether.

  1. To change the rules in ESLint, modify the .eslintrc.js configuration file.
  2. To turn off the git hook off, remove the following lines from package.json.

    Copy
    "husky": {
        "hooks": {
          "pre-commit": "lint-staged"
        }
      },