0.0.1 • Published 10 months ago

eslint-no-restricted-imports-ts-plugin v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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"]
0.0.1

10 months ago