eslint-plugin-deprecation
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -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 { |
{ | ||
"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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
48108
361
24
1
+ Added@typescript-eslint/scope-manager@6.21.0(transitive)
+ Added@typescript-eslint/types@6.21.0(transitive)
+ Added@typescript-eslint/typescript-estree@6.21.0(transitive)
+ Added@typescript-eslint/utils@6.21.0(transitive)
+ Added@typescript-eslint/visitor-keys@6.21.0(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedminimatch@9.0.3(transitive)
+ Addedts-api-utils@1.3.0(transitive)
- Removed@typescript-eslint/scope-manager@5.62.0(transitive)
- Removed@typescript-eslint/types@5.62.0(transitive)
- Removed@typescript-eslint/typescript-estree@5.62.0(transitive)
- Removed@typescript-eslint/utils@5.62.0(transitive)
- Removed@typescript-eslint/visitor-keys@5.62.0(transitive)
- Removedeslint-scope@5.1.1(transitive)
- Removedestraverse@4.3.0(transitive)