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
-
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
YARNyarn add --dev @salesforce/eslint-plugin-lwc-graph-analyzer
-
Install all project modules and dependencies locally in the project.
YARN
yarn install
-
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": [ ...