• Stars
    star
    317
  • Rank 131,865 (Top 3 %)
  • Language
    TypeScript
  • License
    GNU Lesser Genera...
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ESLint rule that reports usage of deprecated code

eslint-plugin-deprecation

Test Workflow Release Workflow Maintainability Npm Npm Downloads Size Licence semantic-release

ESLint rule that reports usage of deprecated code

Prerequisites

This plugin only works with @typescript-eslint/parser.

Which means that you should install dev deps:

  • @typescript-eslint/parser
  • typescript

Then configure ESLint to parse TypeScript and include type information:

{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaVersion": 2020,
    "sourceType": "module",
    "project": "./tsconfig.json" // <-- Point to your project's tsconfig.json or create new one
  }
}

Install

Install the plugin

npm i -D eslint-plugin-deprecation

Setup

Now add deprecation plugin and rule to your .eslintrc:

{
  "plugins": ["deprecation", ...],
  "rules": {
    "deprecation/deprecation": "warn", // or "error" to have stricter rule
    ...
  }
}

Now eslint will report all deprecated code that you use!


NOTE: This rule was ported from https://github.com/SonarSource/SonarJS repository.

More Repositories

1

ng-dynamic-component

Dynamic components with full life-cycle support for inputs and outputs for Angular
TypeScript
557
star
2

ng-http-interceptor

Http Interceptor library for Angular
TypeScript
104
star
3

ngx-router-meta

Configure HTML meta tags like title and description in route configuration of Angular for SSR
TypeScript
4
star
4

time-slots

Small library to generate slots for a date range between a time range with optional intervals
TypeScript
4
star
5

ngx-element-boundary

Strategy for @angular/elements that allows to inherit Injectors between any Angular Custom Elements just like default Angular Components do
TypeScript
3
star
6

ng-annotations

Extract metadata of Angular components, directives, service etc.
JavaScript
3
star
7

ngx-strength-bar

[WIP] Extendable strength bar for Angular
TypeScript
2
star
8

ng-s-triangle-demo

Sierpinski Triangle demo built with Angular
JavaScript
2
star
9

mosaic-canva

This is challenge task for Canva
JavaScript
2
star
10

rollup-globals-regex

Configurable globals with RegExp for Rollup
TypeScript
2
star
11

node-mongo-graphql

Example project built with NodeJS, MongoDB, Mongoose, GraphQL and Graffiti
TypeScript
2
star
12

pooley

Generic pool implementation that works with Webworkers, Promises, etc.
TypeScript
2
star
13

rx-marbles

WIP Interactive RX marbles diagrams
TypeScript
2
star
14

auction

Auction
JavaScript
1
star
15

angular-dynamic-component-test

A POC of dynamic component with full support of lifecycles
TypeScript
1
star
16

ng-router-resolver

Resolve routes from Angular Module
TypeScript
1
star
17

game-companion

Board Games Companion repo
TypeScript
1
star
18

ngx-ag-grid

Useful things for better integration between AgGrid and Angular
TypeScript
1
star
19

ngx-renderer

Advanced abstract renderer for Angular
TypeScript
1
star
20

crossover-project

A test project for CrossOver application process
CSS
1
star
21

selectable

Library that provides selection capabilities to JS ecosystem
TypeScript
1
star