eslint-plugin-node
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -277,4 +277,7 @@ /** | ||
const ignored = info.global ? ignoredGlobalItems : ignoredModuleItems | ||
const name = `${path.join(".")}.${key}` | ||
path.push(key) | ||
const name = path.join(".") | ||
path.pop() | ||
if (ignored.indexOf(name) === -1) { | ||
@@ -409,5 +412,13 @@ report(node, `'${name}'`, info) | ||
for (const reference of variable.references.filter(r => r.isRead())) { | ||
checkProperties(reference.identifier, path, infoMap) | ||
if (infoMap.$deprecated) { | ||
const key = path.pop() | ||
for (const reference of variable.references.filter(r => r.isRead())) { | ||
reportProperty(reference.identifier, path, key, infoMap) | ||
} | ||
} | ||
else { | ||
for (const reference of variable.references.filter(r => r.isRead())) { | ||
checkProperties(reference.identifier, path, infoMap) | ||
} | ||
} | ||
@@ -414,0 +425,0 @@ varStack.pop() |
@@ -689,3 +689,3 @@ /** | ||
"SpreadElement"(node) { | ||
report(node, "spreadOperators", 5) | ||
report(node, "spreadOperators") | ||
}, | ||
@@ -692,0 +692,0 @@ |
@@ -340,2 +340,8 @@ /** | ||
}, | ||
GLOBAL: { | ||
$deprecated: true, | ||
global: true, | ||
since: 6, | ||
replacedBy: "'global'", | ||
}, | ||
Intl: { | ||
@@ -357,2 +363,8 @@ v8BreakIterator: { | ||
}, | ||
root: { | ||
$deprecated: true, | ||
global: true, | ||
since: 6, | ||
replacedBy: "'global'", | ||
}, | ||
process: { | ||
@@ -359,0 +371,0 @@ EventEmitter: { |
{ | ||
"name": "eslint-plugin-node", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Additional ESLint's rules for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
160261
4603