ð§ AngularJS
Use for AngularJS-specific sanitization and SCE policy rules.
Config keyâ
sdl.configs.angularjs;
Flat Config exampleâ
import sdl from "eslint-plugin-sdl-2";
export default [...sdl.configs.angularjs];
Rules in this presetâ
Fixlegend:ð§= autofixableðĄ= suggestions availableâ= report only
| Rule | Fix |
|---|---|
no-angularjs-bypass-sce | â |
no-angularjs-enable-svg | â |
no-angularjs-ng-bind-html-without-sanitize | â |
no-angularjs-sanitization-whitelist | â |
no-angularjs-sce-resource-url-wildcard | â |