Skip to content

Commit 03d5017

Browse files
committed
test: lint test folders specifically - close import-js#43
1 parent 585509e commit 03d5017

File tree

6 files changed

+4242
-3553
lines changed

6 files changed

+4242
-3553
lines changed

package.json

+17-11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.",
55
"repository": "https://github.com/alexgorbatchev/eslint-import-resolver-typescript",
66
"author": "Alex Gorbatchev <alex.gorbatchev@gmail.com>",
7+
"contributors": [
8+
"JounQin <admin@1stg.me>"
9+
],
710
"license": "ISC",
811
"engines": {
912
"node": ">=4"
@@ -29,9 +32,12 @@
2932
"build:ts": "tsc -b",
3033
"lint": "run-p lint:*",
3134
"lint:es": "cross-env PARSER_NO_WATCH=true eslint src --cache --ext md,js,ts -f friendly",
32-
"lint:tsc": "tsc --noEmit",
35+
"lint:tsc": "tsc --incremental false --noEmit",
3336
"pretest": "r",
34-
"test": "cross-env PARSER_NO_WATCH=true eslint tests/**/*.{ts,tsx} --cache -f friendly",
37+
"test:withPaths": "eslint --ext ts,tsx tests/withPaths",
38+
"test:withoutPaths": "eslint --ext ts,tsx tests/withoutPaths",
39+
"test:multipleTsconfigs": "eslint --ext ts,tsx tests/multipleTsconfigs",
40+
"test": "run-p test:*",
3541
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict"
3642
},
3743
"peerDependencies": {
@@ -40,27 +46,27 @@
4046
},
4147
"dependencies": {
4248
"debug": "^4.1.1",
49+
"glob": "^7.1.6",
4350
"is-glob": "^4.0.1",
44-
"resolve": "^1.12.0",
45-
"tiny-glob": "^0.2.6",
51+
"resolve": "^1.15.1",
4652
"tsconfig-paths": "^3.9.0"
4753
},
4854
"devDependencies": {
49-
"@1stg/lib-config": "^0.1.13",
55+
"@1stg/lib-config": "^0.4.5",
5056
"@types/debug": "^4.1.5",
57+
"@types/glob": "^7.1.1",
5158
"@types/is-glob": "^4.0.1",
52-
"@types/node": "^12.12.7",
53-
"@types/resolve": "^0.0.8",
59+
"@types/node": "^13.11.1",
60+
"@types/resolve": "^1.14.0",
5461
"@types/unist": "^2.0.3",
5562
"dummy.js": "link:dummy.js",
5663
"eslint-import-resolver-typescript": "link:.",
5764
"npm-run-all": "^4.1.5",
58-
"react": "^16.11.0",
59-
"type-coverage": "^2.3.0",
60-
"typescript": "^3.7.2"
65+
"react": "^16.13.1",
66+
"type-coverage": "^2.4.2",
67+
"typescript": "^3.8.3"
6168
},
6269
"resolutions": {
63-
"@babel/core": "^7.7.2",
6470
"eslint-import-resolver-typescript": "link:."
6571
},
6672
"typeCoverage": {

src/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "@1stg/eslint-config/recommended"
2+
"extends": "@1stg"
33
}

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
loadConfig,
77
ConfigLoaderResult,
88
} from 'tsconfig-paths'
9-
import globSync from 'tiny-glob/sync'
9+
import { sync as globSync } from 'glob'
1010
import isGlob from 'is-glob'
1111
import { isCore, sync } from 'resolve'
1212
import debug from 'debug'
1313

14-
const log = debug('eslint-import-resolver-ts')
14+
const log = debug('eslint-import-resolver-typescript')
1515

1616
const extensions = ['.ts', '.tsx', '.d.ts'].concat(
1717
// eslint-disable-next-line node/no-deprecated-api

src/tiny-glob.d.ts

-13
This file was deleted.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@1stg/tsconfig/lib",
2+
"extends": "./node_modules/@1stg/tsconfig/lib.json",
33
"compilerOptions": {
44
"baseUrl": ".",
55
"outDir": "lib"

0 commit comments

Comments
 (0)