Skip to content

Commit 970b2ef

Browse files
committed
Merge remote-tracking branch 'upstream/master' into chore/merge
2 parents d81f8ee + 0cbd385 commit 970b2ef

File tree

4 files changed

+1157
-51
lines changed

4 files changed

+1157
-51
lines changed

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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

104104
If either fails, we won't be able to merge your PR until it's fixed.

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "eslint-import-resolver-ts",
3-
"version": "0.4.0",
2+
"name": "eslint-import-resolver-typescript",
3+
"version": "2.0.0",
44
"description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.",
55
"repository": "git@github.com/rx-ts/eslint-import-resolver-ts.git",
66
"author": "Alex Gorbatchev <alex.gorbatchev@gmail.com>",
@@ -18,7 +18,7 @@
1818
],
1919
"scripts": {
2020
"build:ts": "tsc -b src",
21-
"build:bundle": "r --externals tiny-glob/sync",
21+
"build:bundle": "r",
2222
"build": "run-p build:*",
2323
"lint": "eslint --ext md,js,ts -f friendly --ignore-pattern tests .",
2424
"test": "eslint -f friendly tests/**/*.{ts,tsx}",
@@ -50,7 +50,7 @@
5050
"@1stg/lint-staged": "^0.7.4",
5151
"@1stg/prettier-config": "^0.2.0",
5252
"@1stg/remark-config": "^0.2.1",
53-
"@1stg/rollup-config": "^0.9.5",
53+
"@1stg/rollup-config": "^0.11.4",
5454
"@1stg/tsconfig": "^0.5.1",
5555
"@babel/core": "^7.6.0",
5656
"@commitlint/cli": "^8.2.0",
@@ -61,6 +61,7 @@
6161
"@types/unist": "^2.0.3",
6262
"dummy.js": "link:dummy.js",
6363
"eslint": "^6.4.0",
64+
"eslint-import-resolver-typescript": "link:.",
6465
"husky": "^3.0.5",
6566
"lint-staged": "^9.3.0",
6667
"npm-run-all": "^4.1.5",
@@ -71,7 +72,7 @@
7172
"typescript": "^3.6.3"
7273
},
7374
"resolutions": {
74-
"eslint-import-resolver-ts": "link:."
75+
"eslint-import-resolver-typescript": "link:."
7576
},
7677
"typeCoverage": {
7778
"atLeast": 100

tests/baseEslintConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = directory => ({
99
],
1010
settings: {
1111
'import/resolver': {
12-
ts: {
12+
typescript: {
1313
directory,
1414
alwaysTryTypes: true,
1515
},

0 commit comments

Comments
 (0)