Socket
Socket
Sign inDemoInstall

eslint-plugin-deprecation

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-deprecation - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

dist/eslint-plugin-deprecation-1.6.0.tgz

5

dist/rules/deprecation.js

@@ -29,3 +29,2 @@ "use strict";

description: 'Do not use deprecated APIs.',
recommended: 'warn',
requiresTypeChecking: true,

@@ -40,2 +39,6 @@ },

create(context) {
const services = utils_1.ESLintUtils.getParserServices(context);
if (!services.program) {
throw new Error('TypeScript is required for this rule: https://github.com/gund/eslint-plugin-deprecation#prerequisites');
}
const identifierRule = createRuleForIdentifier(context);

@@ -42,0 +45,0 @@ return {

13

package.json
{
"name": "eslint-plugin-deprecation",
"version": "1.5.0",
"version": "1.6.0",
"description": "ESLint rule that reports usage of deprecated code",

@@ -27,3 +27,3 @@ "author": "Alex Malkevich <malkevich.alex@gmail.com>",

"dependencies": {
"@typescript-eslint/utils": "^5.57.0",
"@typescript-eslint/utils": "^6.0.0",
"tslib": "^2.3.1",

@@ -33,4 +33,4 @@ "tsutils": "^3.21.0"

"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0",
"typescript": "^3.7.5 || ^4.0.0 || ^5.0.0"
"eslint": "^7.0.0 || ^8.0.0",
"typescript": "^4.2.4 || ^5.0.0"
},

@@ -48,4 +48,5 @@ "devDependencies": {

"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/rule-tester": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"commitizen": "^4.2.4",

@@ -52,0 +53,0 @@ "cz-conventional-changelog": "^3.3.0",

@@ -64,3 +64,3 @@ # eslint-plugin-deprecation

The `recommended` config will enable the plugin and enable the rule with a value of `error`.
The `recommended` config will enable the plugin and enable the `deprecation/deprecation` rule with a value of `error`.

@@ -85,2 +85,2 @@ ### Manually Enable the Plugin and Rule

This rule was originally ported from [SonarJS repository](https://github.com/SonarSource/SonarJS).
This rule was originally ported from the [SonarJS repository](https://github.com/SonarSource/SonarJS).

Sorry, the diff of this file is not supported yet

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