mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Update multiple packages + fix eslint resolver issue
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user