Skip to content

AkisArou/eslint-no-restricted-imports-ts-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eslint no-restricted-imports ts service plugin

A typescript language service plugin, for filtering out symbols from editor completion, for libraries that fail the "no-restricted-imports" rule. (In VSCode might need a "Typescript: Restart TS server")

Usage

You should have a valid eslint configuration file, that uses the "no-restricted-imports" eslint rule.

Installation:

npm i eslint-no-restricted-imports-ts-plugin
// tsconfig.base.json

{
  "compilerOptions": {
    //...
    "plugins": [
      {
        "name": "eslint-no-restricted-imports-ts-plugin"
      }
    ]
  }
}

add the following into VSCode settings.json

  "typescript.tsserver.pluginPaths": ["./node_modules"]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published