UNPKG

@microsoft/eslint-plugin-sdl

Version:

ESLint plugin focused on common security issues and misconfigurations discoverable during static testing as part of Microsoft Security Development Lifecycle (SDL)

21 lines (18 loc) 511 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. "use strict"; // Generates shareable config for legacy AngularJS (https://angularjs.org/) apps. module.exports = (pluginSdl) => { return [ { plugins: { "@microsoft/sdl": pluginSdl }, rules: { "@microsoft/sdl/no-angularjs-enable-svg": "error", "@microsoft/sdl/no-angularjs-sanitization-whitelist": "error", "@microsoft/sdl/no-angularjs-bypass-sce": "error" } } ]; };