eslint-plugin-no-unsanitized
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -1,2 +0,1 @@ | ||
/* global module, require */ | ||
module.exports = { | ||
@@ -3,0 +2,0 @@ rules: { |
@@ -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 |
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
115848
1204