mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Update multiple packages + fix eslint resolver issue
This commit is contained in:
parent
5558abf4ac
commit
b595428c55
5 changed files with 420 additions and 21 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"plugins": ["jest", "@typescript-eslint"],
|
||||
"plugins": ["import", "jest", "@typescript-eslint"],
|
||||
"extends": ["plugin:github/recommended"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
|
|
@ -53,5 +53,37 @@
|
|||
"node": true,
|
||||
"es6": true,
|
||||
"jest/globals": true
|
||||
},
|
||||
"settings": {
|
||||
"import/parsers": {
|
||||
"@typescript-eslint/parser": [".ts", ".tsx"]
|
||||
},
|
||||
"import/resolver": {
|
||||
"typescript": {
|
||||
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
|
||||
|
||||
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
|
||||
|
||||
// use <root>/path/to/folder/tsconfig.json
|
||||
"project": "path/to/folder",
|
||||
|
||||
// Multiple tsconfigs (Useful for monorepos)
|
||||
|
||||
// use a glob pattern
|
||||
"project": "packages/*/tsconfig.json",
|
||||
|
||||
// use an array
|
||||
"project": [
|
||||
"packages/module-a/tsconfig.json",
|
||||
"packages/module-b/tsconfig.json"
|
||||
],
|
||||
|
||||
// use an array of glob patterns
|
||||
"project": [
|
||||
"packages/*/tsconfig.json",
|
||||
"other-packages/*/tsconfig.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue