Install the Komaci Static Analyzer

The Komaci static analyser is an ESLint plugin that you install using a package manager, such as NPM or Yarn.
  • Node.js >= 14.0.0
  • A supported package manager
    • NPM >= 6.0.0
    • Yarn (Classic) >= 1.22.19

Use Terminal (or your command line tool of choice) to run all commands from the root directory of your Lightning web components project.

Note

  1. Add the Komaci Static Analyzer plugin and its dependencies to the development dependencies of your project.
    NPM
    npm install --save-dev @salesforce/eslint-plugin-lwc-graph-analyzer
    YARN
    yarn add --dev @salesforce/eslint-plugin-lwc-graph-analyzer
  2. Install all project modules and dependencies locally in the project.
    NPM
    npm install
    YARN
    yarn install
  3. Configure your project to use the new plugin.
    Modify the .eslintrc.json file under your project’s force-app/main/default/lwc directory by adding the bolded text:
    {
      
      "extends": [
        "@salesforce/eslint-config-lwc/recommended", 
        
        "plugin:@salesforce/lwc-graph-analyzer/recommended"
      ],
      "overrides": [
    ...