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

eslint-plugin-eslint-comments

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-eslint-comments - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

12

lib/rules/no-unused-disable.js

@@ -31,3 +31,4 @@ /**

create(context) {
const originalReport = context.eslint.report
const linter = context.eslint || context._linter
const originalReport = linter.report
const sourceCode = context.getSourceCode()

@@ -37,3 +38,3 @@ const disabledArea = DisabledArea.get(sourceCode)

// Override `report` method to mark disabled-area as reported.
context.eslint.report = function(ruleId, _severity, node, locationArg) {
linter.report = function(ruleId, _severity, node, locationArg) {
const location = (typeof locationArg === "string")

@@ -69,3 +70,3 @@ ? node.loc.start

// Restore
context.eslint.report = originalReport
linter.report = originalReport
}

@@ -77,6 +78,9 @@

// even if this rule was initialized before other rules.
context.eslint.on("Program:exit", report)
linter.on("Program:exit", report)
},
"Program:exit"() {
// Ensure that at least one Program:exit listener exists so that the report listener will be called.
},
}
},
}
{
"name": "eslint-plugin-eslint-comments",
"version": "1.0.2",
"version": "1.0.3",
"description": "Additional ESLint rules for directive comments of ESLint.",

@@ -5,0 +5,0 @@ "engines": {

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