Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-angularjs-security-rules

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-angularjs-security-rules - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

27

lib/rules/detect-angular-trustAs-methods.js

@@ -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`);
// }
// })
// }
// };
// }
// };
};

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc