Skip to content

Commit e26fed2

Browse files
committed
Failing test
1 parent 82ef357 commit e26fed2

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"test:multipleTsconfigs": "eslint --ext ts,tsx tests/multipleTsconfigs",
4343
"test:withJsExtension": "node tests/withJsExtension/test.js && eslint --ext ts,tsx tests/withJsExtension",
4444
"test:withPaths": "eslint --ext ts,tsx tests/withPaths",
45+
"test:withPaths2": "eslint --ext ts,tsx tests/withPaths2",
4546
"test:withQuerystring": "eslint --ext ts,tsx tests/withQuerystring",
4647
"test:withoutPaths": "eslint --ext ts,tsx tests/withoutPaths",
4748
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict --update"

tests/withPaths2/.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../baseEslintConfig')(__dirname)

tests/withPaths2/other/bar.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// import using tsconfig.json `baseUrl`
2+
import 'foo'

tests/withPaths2/root/foo.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// import using tsconfig.json path mapping
2+
import 'other/bar'

tests/withPaths2/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "root/",
4+
"paths": {
5+
"other/*": ["../other/*"]
6+
}
7+
},
8+
"files": ["root/foo.ts", "other/bar.ts"]
9+
}

0 commit comments

Comments
 (0)