eslint-plugin-angularjs-security-rules
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -23,27 +23,2 @@ /** | ||
} | ||
}; | ||
// /** | ||
// * @fileoverview Rule to detect use of explcility trusted content | ||
// * @author Lewis Ardern | ||
// */ | ||
// "use strict"; | ||
// module.exports = { | ||
// create: function (context) { | ||
// return { | ||
// "CallExpression": function (node) { | ||
// const expressions = ['trustAs', 'trustAsHtml', 'trustAsUrl','trustAsJs','trustAsCss','trustAsResourceUrl']; | ||
// expressions.map(expression => { | ||
// if ((expression.indexOf(node.callee.name) == 0) && (expression.length == node.callee.name.length) || ((node.callee.property) && (node.callee.property.name == expression))) { | ||
// context.report(node, `The use of $sce.${node.callee.property.name} can be dangerous`); | ||
// } | ||
// }) | ||
// } | ||
// }; | ||
// } | ||
// }; | ||
}; |
{ | ||
"name": "eslint-plugin-angularjs-security-rules", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "ESLint plugin that contains AngularJS rules", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -5,2 +5,8 @@ # AngularJS Security Rules For ESLint | ||
# Usage | ||
These rules can be used by downloading the [Config](https://github.com/LewisArdern/eslint-config-angular-security) which includes the installation settings. | ||
## Rules | ||
The current ruleset supports only Angular 1.x issues, and can be noisy, but they are a work in progress. | ||
@@ -7,0 +13,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29
20938
538