If you want to get something like ScanJS using ESLint. This is the config file.
To install, just execute this command
sudo ./install.sh
Sorry, this needs root to install npm packages globally.
cd project-to-scan/
eslint --no-eslintrc -c ~/.scanjs-eslintrc .
- Open the Settings dialog and navigate to Languages & Frameworks → JavaScript → Code Quality Tools → ESLint.
- Enable it and make sure your settings match your installation, especially:
- Use a globally installed eslint package, the installer will place this in /usr/lib/node_modules/eslint or /usr/local/lib/node_modules/eslint
- Reset the default rules, by providing extra eslint options, so we only use the provided scanjs-eslintrc. This disable the default eslint rules, which check for coding style, not security.
You can also check out this screenshot below.