Skip to content
This plugin adds TypeScript support to `eslint-plugin-import`.
Branch: master
Clone or download
jhoch and bradzacher [DOCS] Updates reference to parser (#14)
Follow-up to [this commit](af44441)

Thanks for the plugin!
Latest commit 18eafa2 Mar 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
dummy.js [FIX] Don't require baseUrl (#8) Oct 26, 2018
tests drop node 6 compatability Dec 13, 2018
.gitignore add missing settings to eslint example configuration and add editor f… Dec 12, 2018
.npmignore [CHORE] bump version for pre-release Oct 8, 2018
.travis.yml drop node 6 compatability Dec 13, 2018 [DOCS] Updates reference to parser (#14) Mar 4, 2019
index.js format Dec 13, 2018
package-lock.json [FIX] Don't require baseUrl (#8) Oct 26, 2018
prettier.config.js drop node 6 compatability Dec 13, 2018


Build Status

This plugin adds typescript support to eslint-plugin-import.

This means you can:

  • import/require files with extension .ts/.tsx!
  • Use paths defined in tsconfig.json.


npm install --save-dev eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-typescript


Add the following to your .eslintrc config:

  "plugins": ["import"],
  "rules": {
    // turn on errors for missing imports
    "import/no-unresolved": "error"
  "settings": {
    "import/parsers": {
      "@typescript-eslint/parser": [".ts", ".tsx"]
    "import/resolver": {
      // use <root>/tsconfig.json
      "typescript": {},

      // use <root>/path/to/folder/tsconfig.json
      "typescript": {
        "directory": "./path/to/folder"


  • Make sure your change is covered by a test import.
  • Make sure that npm test passes without a failure.
  • Make sure your code is formatted npm format.

We have an automatic travis build which will run the above on your PRs. If either fails, we won't be able to merge your PR until it's fixed.

You can’t perform that action at this time.