diff --git a/README.md b/README.md index 7b0077a..519ad09 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,2 @@ -# eslint-plugin-import-typescript-resolver +Moved to [eslint-import-resolver-typescript](https://github.com/alexgorbatchev/eslint-import-resolver-typescript). -This plugin allows you to use `eslint-plugin-import` with `.ts` and `.tsx` files. - -![](screenshot.png) - -## Installation - -``` -npm install --save-dev eslint-plugin-import-typescript-resolver -``` - -Add the following to your eslint config: - -``` -"settings": { - "import/resolver": { - "node": true, - "eslint-plugin-import-typescript-resolver": true - } -} -``` diff --git a/index.js b/index.js index d2f6833..14dd9f1 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ module.exports.interfaceVersion = 2; function opts(file, config) { return Object.assign( - { extensions: ['.ts', '.tsx'] }, + { extensions: ['.ts', '.tsx', '.d.ts'] }, config, // path.resolve will handle paths relative to CWD { basedir: path.dirname(path.resolve(file)) }, diff --git a/package-lock.json b/package-lock.json index f69e007..79e3f91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-import-typescript-resolver", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 23eda49..b8eb410 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,18 @@ { "name": "eslint-plugin-import-typescript-resolver", - "version": "1.0.0", + "version": "1.0.2", "description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.", "main": "index.js", - "files": ["index.js"], - "keywords": ["typescript", "eslint", "import", "resolver", "plugin"], + "files": [ + "index.js" + ], + "keywords": [ + "typescript", + "eslint", + "import", + "resolver", + "plugin" + ], "author": "Alex Gorbatchev ", "license": "ISC", "dependencies": {