ESLint plugin providing supplemental security rules inspired by Mozilla's ScanJS, version 0.2.1. Last updated in 2016 with no active release cadence. Provides additional rules not found in core ESLint for detecting dangerous patterns (e.g., innerHTML, eval-like usage, constructors with HTML strings). Use with eslint-config-scanjs for full ScanJS parity. Note: unmaintained, may not work with modern ESLint versions (tested up to ESLint 3).
npm install eslint-plugin-scanjs-rulesVerified import paths — ran on the pinned version, not inferred.
Shows how to configure ESLint to use scanjs-rules plugin and enable recommended rules plus custom overrides.
Consider using eslint-plugin-security or @microsoft/eslint-plugin-sdl instead.
Use ESLint core 'no-eval' or scanjs-rules 'no-eval' but not both.
Use 'scanjs-rules/rule-name' in rules object.
Wrap plugin in custom wrapper or use alternative security linter.
Set env: { browser: true } in ESLint config.Run 'npm install eslint-plugin-scanjs-rules --save-dev'.
Use 'scanjs-rules/no-eval' (with prefix) in rules object, and ensure plugin is in plugins array.
Use string for extends: 'plugin:eslint-plugin-scanjs-rules/recommended' (not array) in ESLint <3.
No dependency data recorded yet.