npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@corbinu/eslint-plugin-typescript

v25.0.1

Published

TypeScript plugin for ESLint

Readme

eslint-plugin-typescript

NPM version NPM downloads TravisCI

TypeScript support for ESLint. (This is still in the very early stages, so please be patient.)

The below readme is for the upcoming 1.0.0 release. Please see this tag for the current NPM version (0.14.0)

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install typescript if you haven’t already:

$ npm i typescript@~3.1.1 --save-dev

Last, install eslint-plugin-typescript:

$ npm install eslint-plugin-typescript --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-typescript globally.

Usage

Add eslint-plugin-typescript/parser to the parser field and typescript to the plugins section of your .eslintrc configuration file:

{
  "parser": "eslint-plugin-typescript/parser",
  "plugins": ["typescript"]
}

Note: The plugin provides its own version of the @typescript-eslint/parser via eslint-plugin-typescript/parser. This helps us guarantee 100% compatibility between the plugin and the parser.

Then configure the rules you want to use under the rules section.

{
  "parser": "eslint-plugin-typescript/parser",
  "plugins": ["typescript"],
  "rules": {
    "typescript/rule-name": "error"
  }
}

You can also enable all the recommended rules at once. Add plugin:typescript/recommended in extends:

{
  "extends": ["plugin:typescript/recommended"]
}

Supported Rules

Key: :heavy_check_mark: = recommended, :wrench: = fixable

| Name | Description | :heavy_check_mark: | :wrench: | | ---- | ----------- | ------------------ | -------- | | typescript/adjacent-overload-signatures | Require that member overloads be consecutive (adjacent-overload-signatures from TSLint) | :heavy_check_mark: | | | typescript/array-type | Requires using either T[] or Array<T> for arrays (array-type from TSLint) | :heavy_check_mark: | :wrench: | | typescript/ban-types | Enforces that types will not to be used (ban-types from TSLint) | :heavy_check_mark: | :wrench: | | typescript/camelcase | Enforce camelCase naming convention | :heavy_check_mark: | | | typescript/class-name-casing | Require PascalCased class and interface names (class-name from TSLint) | :heavy_check_mark: | | | typescript/explicit-function-return-type | Require explicit return types on functions and class methods | :heavy_check_mark: | | | typescript/explicit-member-accessibility | Require explicit accessibility modifiers on class properties and methods (member-access from TSLint) | :heavy_check_mark: | | | typescript/generic-type-naming | Enforces naming of generic type variables | | | | typescript/indent | Enforce consistent indentation (indent from TSLint) | :heavy_check_mark: | :wrench: | | typescript/interface-name-prefix | Require that interface names be prefixed with I (interface-name from TSLint) | :heavy_check_mark: | | | typescript/member-delimiter-style | Require a specific member delimiter style for interfaces and type literals | :heavy_check_mark: | :wrench: | | typescript/member-naming | Enforces naming conventions for class members by visibility. | | | | typescript/member-ordering | Require a consistent member declaration order (member-ordering from TSLint) | | | | typescript/no-angle-bracket-type-assertion | Enforces the use of as Type assertions instead of <Type> assertions (no-angle-bracket-type-assertion from TSLint) | :heavy_check_mark: | | | typescript/no-array-constructor | Disallow generic Array constructors | :heavy_check_mark: | :wrench: | | typescript/no-empty-interface | Disallow the declaration of empty interfaces (no-empty-interface from TSLint) | :heavy_check_mark: | | | typescript/no-explicit-any | Disallow usage of the any type (no-any from TSLint) | :heavy_check_mark: | | | typescript/no-extraneous-class | Forbids the use of classes as namespaces (no-unnecessary-class from TSLint) | | | | typescript/no-inferrable-types | Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean. (no-inferrable-types from TSLint) | :heavy_check_mark: | :wrench: | | typescript/no-misused-new | Enforce valid definition of new and constructor. (no-misused-new from TSLint) | :heavy_check_mark: | | | typescript/no-namespace | Disallow the use of custom TypeScript modules and namespaces (no-namespace from TSLint) | :heavy_check_mark: | | | typescript/no-non-null-assertion | Disallows non-null assertions using the ! postfix operator (no-non-null-assertion from TSLint) | :heavy_check_mark: | | | typescript/no-object-literal-type-assertion | Forbids an object literal to appear in a type assertion expression (no-object-literal-type-assertion from TSLint) | :heavy_check_mark: | | | typescript/no-parameter-properties | Disallow the use of parameter properties in class constructors. (no-parameter-properties from TSLint) | :heavy_check_mark: | | | typescript/no-this-alias | Disallow aliasing this (no-this-assignment from TSLint) | | | | typescript/no-triple-slash-reference | Disallow /// <reference path="" /> comments (no-reference from TSLint) | :heavy_check_mark: | | | typescript/no-type-alias | Disallow the use of type aliases (interface-over-type-literal from TSLint) | | | | typescript/no-unused-vars | Disallow unused variables (no-unused-variable from TSLint) | :heavy_check_mark: | | | typescript/no-use-before-define | Disallow the use of variables before they are defined | :heavy_check_mark: | | | typescript/no-var-requires | Disallows the use of require statements except in import statements (no-var-requires from TSLint) | :heavy_check_mark: | | | typescript/prefer-interface | Prefer an interface declaration over a type literal (type T = { ... }) (interface-over-type-literal from TSLint) | :heavy_check_mark: | :wrench: | | typescript/prefer-namespace-keyword | Require the use of the namespace keyword instead of the module keyword to declare custom TypeScript modules. (no-internal-module from TSLint) | :heavy_check_mark: | :wrench: | | typescript/type-annotation-spacing | Require consistent spacing around type annotations (typedef-whitespace from TSLint) | :heavy_check_mark: | :wrench: |