Socket
Socket
Sign inDemoInstall

eslint-plugin-no-unsanitized

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-unsanitized - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

1

index.js

@@ -1,2 +0,1 @@

/* global module, require */
module.exports = {

@@ -3,0 +2,0 @@ rules: {

4

lib/ruleHelper.js

@@ -235,3 +235,3 @@ /**

if (this.ruleChecks.hasOwnProperty(methodName)) {
if (Object.prototype.hasOwnProperty.call(this.ruleChecks, methodName)) {
const ruleCheck = this.ruleChecks[methodName];

@@ -258,3 +258,3 @@ if (!Array.isArray(ruleCheck.properties)) {

checkProperty(node) {
if (this.ruleChecks.hasOwnProperty(node.left.property.name)) {
if (Object.prototype.hasOwnProperty.call(this.ruleChecks, node.left.property.name)) {
const ruleCheck = this.ruleChecks[node.left.property.name];

@@ -261,0 +261,0 @@ if (!this.allowedExpression(node.right, ruleCheck.escape)) {

@@ -1,2 +0,1 @@

/* global module */
/**

@@ -3,0 +2,0 @@ * @fileoverview ESLint rule to disallow unsanitized method calls

@@ -1,2 +0,1 @@

/* global module */
/**

@@ -3,0 +2,0 @@ * @fileoverview ESLint rule to disallow unsanitized property assignment

{
"name": "eslint-plugin-no-unsanitized",
"description": "ESLint rule to disallow unsanitized code",
"version": "3.1.0",
"version": "3.1.1",
"author": {

@@ -13,7 +13,7 @@ "name": "Frederik Braun et al."

"babel-eslint": "^8.2.6",
"eslint": "^5.0.0",
"eslint": "^6.0.0",
"mocha": "^5.2.0"
},
"peerDependencies": {
"eslint": "^5"
"eslint": "^5 || ^6"
},

@@ -20,0 +20,0 @@ "homepage": "https://github.com/mozilla/eslint-plugin-no-unsanitized/",

@@ -1,2 +0,1 @@

/* global require */
/**

@@ -15,2 +14,4 @@ * @fileoverview Test for no-unsanitized rule

const PATH_TO_BABEL_ESLINT = `${process.cwd()}/node_modules/babel-eslint/`;
//------------------------------------------------------------------------------

@@ -155,3 +156,3 @@ // Tests

code: "import('lodash')",
parser: "babel-eslint"
parser: PATH_TO_BABEL_ESLINT
},

@@ -366,3 +367,3 @@ { // issue 108: adding tests for custom escaper

code: "import(foo)",
parser: "babel-eslint",
parser: PATH_TO_BABEL_ESLINT,
errors: [

@@ -369,0 +370,0 @@ {

@@ -1,2 +0,1 @@

/* global require */
/**

@@ -3,0 +2,0 @@ * @fileoverview Test for no-unsanitized rule

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