1- # eslint-import-resolver-ts
1+ # eslint-import-resolver-typescript
22
3- [ ![ GitHub Actions] ( https://github.com/rx-ts /eslint-import-resolver-ts /workflows/Node%20CI/badge.svg )] ( https://github.com/rx-ts /eslint-import-resolver-ts /actions )
4- [ ![ type-coverage] ( https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Frx-ts %2Feslint-import-resolver-ts %2Fmaster%2Fpackage.json )] ( https://github.com/plantain-00/type-coverage )
5- [ ![ npm] ( https://img.shields.io/npm/v/eslint-import-resolver-ts .svg )] ( https://www.npmjs.com/package/eslint-import-resolver-ts )
6- [ ![ GitHub Release] ( https://img.shields.io/github/release/rx-ts /eslint-import-resolver-ts )] ( https://github.com/rx-ts /eslint-import-resolver-ts /releases )
3+ [ ![ GitHub Actions] ( https://github.com/alexgorbatchev /eslint-import-resolver-typescript /workflows/Node%20CI/badge.svg )] ( https://github.com/alexgorbatchev /eslint-import-resolver-typescript /actions )
4+ [ ![ type-coverage] ( https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Falexgorbatchev %2Feslint-import-resolver-typescript %2Fmaster%2Fpackage.json )] ( https://github.com/plantain-00/type-coverage )
5+ [ ![ npm] ( https://img.shields.io/npm/v/eslint-import-resolver-typescript .svg )] ( https://www.npmjs.com/package/eslint-import-resolver-typescript )
6+ [ ![ GitHub Release] ( https://img.shields.io/github/release/alexgorbatchev /eslint-import-resolver-typescript )] ( https://github.com/alexgorbatchev /eslint-import-resolver-typescript /releases )
77
8- [ ![ David Peer] ( https://img.shields.io/david/peer/rx-ts /eslint-import-resolver-ts .svg )] ( https://david-dm.org/rx-ts /eslint-import-resolver-ts ?type=peer )
9- [ ![ David] ( https://img.shields.io/david/rx-ts /eslint-import-resolver-ts .svg )] ( https://david-dm.org/rx-ts /eslint-import-resolver-ts )
10- [ ![ David Dev] ( https://img.shields.io/david/dev/rx-ts /eslint-import-resolver-ts .svg )] ( https://david-dm.org/rx-ts /eslint-import-resolver-ts ?type=dev )
8+ [ ![ David Peer] ( https://img.shields.io/david/peer/alexgorbatchev /eslint-import-resolver-typescript .svg )] ( https://david-dm.org/alexgorbatchev /eslint-import-resolver-typescript ?type=peer )
9+ [ ![ David] ( https://img.shields.io/david/alexgorbatchev /eslint-import-resolver-typescript .svg )] ( https://david-dm.org/alexgorbatchev /eslint-import-resolver-typescript )
10+ [ ![ David Dev] ( https://img.shields.io/david/dev/alexgorbatchev /eslint-import-resolver-typescript .svg )] ( https://david-dm.org/alexgorbatchev /eslint-import-resolver-typescript ?type=dev )
1111
1212[ ![ Conventional Commits] ( https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg )] ( https://conventionalcommits.org )
1313[ ![ JavaScript Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://standardjs.com )
@@ -33,10 +33,10 @@ This means you can:
3333
3434``` sh
3535# npm
36- npm i -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-ts
36+ npm i -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-typescript
3737
3838# yarn
39- yarn add -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-ts
39+ yarn add -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-typescript
4040```
4141
4242## Configuration
@@ -56,32 +56,32 @@ Add the following to your `.eslintrc` config:
5656 },
5757 " import/resolver" : {
5858 // use <root>/tsconfig.json
59- " ts " : {
59+ " typescript " : {
6060 " alwaysTryTypes" : true // always try to resolve types under `<roo/>@types` directory even it doesn't contain any source code, like `@types/unist`
6161 },
6262
6363 // use <root>/path/to/folder/tsconfig.json
64- " ts " : {
64+ " typescript " : {
6565 " directory" : " ./path/to/folder"
6666 },
6767
6868 // Multiple tsconfigs (Useful for monorepos)
6969
7070 // use a glob pattern
71- " ts " : {
71+ " typescript " : {
7272 " directory" : " ./packages/*/tsconfig.json"
7373 },
7474
7575 // use an array
76- " ts " : {
76+ " typescript " : {
7777 " directory" : [
7878 " ./packages/module-a/tsconfig.json" ,
7979 " ./packages/module-b/tsconfig.json"
8080 ]
8181 },
8282
8383 // use an array of glob patterns
84- " ts " : {
84+ " typescript " : {
8585 " directory" : [
8686 " ./packages/*/tsconfig.json" ,
8787 " ./other-packages/*/tsconfig.json"
@@ -99,6 +99,6 @@ Add the following to your `.eslintrc` config:
9999- Make sure that ` yarn lint ` passes without conflicts.
100100- Make sure your code changes match our [ type-coverage] ( https://github.com/plantain-00/type-coverage ) settings: ` yarn type-coverage ` .
101101
102- We have [ GitHub Actions] ( https://github.com/rx-ts /eslint-import-resolver-ts /actions ) which will run the above commands on your PRs.
102+ We have [ GitHub Actions] ( https://github.com/alexgorbatchev /eslint-import-resolver-typescript /actions ) which will run the above commands on your PRs.
103103
104104If either fails, we won't be able to merge your PR until it's fixed.
0 commit comments