Skip to content

Commit

Permalink
test: lint test folders specifically - close #43
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Apr 10, 2020
1 parent 585509e commit 03d5017
Show file tree
Hide file tree
Showing 6 changed files with 4,242 additions and 3,553 deletions.
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.",
"repository": "https://github.com/alexgorbatchev/eslint-import-resolver-typescript",
"author": "Alex Gorbatchev <[email protected]>",
"contributors": [
"JounQin <[email protected]>"
],
"license": "ISC",
"engines": {
"node": ">=4"
Expand All @@ -29,9 +32,12 @@
"build:ts": "tsc -b",
"lint": "run-p lint:*",
"lint:es": "cross-env PARSER_NO_WATCH=true eslint src --cache --ext md,js,ts -f friendly",
"lint:tsc": "tsc --noEmit",
"lint:tsc": "tsc --incremental false --noEmit",
"pretest": "r",
"test": "cross-env PARSER_NO_WATCH=true eslint tests/**/*.{ts,tsx} --cache -f friendly",
"test:withPaths": "eslint --ext ts,tsx tests/withPaths",
"test:withoutPaths": "eslint --ext ts,tsx tests/withoutPaths",
"test:multipleTsconfigs": "eslint --ext ts,tsx tests/multipleTsconfigs",
"test": "run-p test:*",
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict"
},
"peerDependencies": {
Expand All @@ -40,27 +46,27 @@
},
"dependencies": {
"debug": "^4.1.1",
"glob": "^7.1.6",
"is-glob": "^4.0.1",
"resolve": "^1.12.0",
"tiny-glob": "^0.2.6",
"resolve": "^1.15.1",
"tsconfig-paths": "^3.9.0"
},
"devDependencies": {
"@1stg/lib-config": "^0.1.13",
"@1stg/lib-config": "^0.4.5",
"@types/debug": "^4.1.5",
"@types/glob": "^7.1.1",
"@types/is-glob": "^4.0.1",
"@types/node": "^12.12.7",
"@types/resolve": "^0.0.8",
"@types/node": "^13.11.1",
"@types/resolve": "^1.14.0",
"@types/unist": "^2.0.3",
"dummy.js": "link:dummy.js",
"eslint-import-resolver-typescript": "link:.",
"npm-run-all": "^4.1.5",
"react": "^16.11.0",
"type-coverage": "^2.3.0",
"typescript": "^3.7.2"
"react": "^16.13.1",
"type-coverage": "^2.4.2",
"typescript": "^3.8.3"
},
"resolutions": {
"@babel/core": "^7.7.2",
"eslint-import-resolver-typescript": "link:."
},
"typeCoverage": {
Expand Down
2 changes: 1 addition & 1 deletion src/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@1stg/eslint-config/recommended"
"extends": "@1stg"
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
loadConfig,
ConfigLoaderResult,
} from 'tsconfig-paths'
import globSync from 'tiny-glob/sync'
import { sync as globSync } from 'glob'
import isGlob from 'is-glob'
import { isCore, sync } from 'resolve'
import debug from 'debug'

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

const extensions = ['.ts', '.tsx', '.d.ts'].concat(
// eslint-disable-next-line node/no-deprecated-api
Expand Down
13 changes: 0 additions & 13 deletions src/tiny-glob.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@1stg/tsconfig/lib",
"extends": "./node_modules/@1stg/tsconfig/lib.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib"
Expand Down
Loading

0 comments on commit 03d5017

Please sign in to comment.