Skip to content

Commit f8abe7d

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
Fix TypeScript server
Bug: none Change-Id: I1e6018e5df660afa6e7b0075139d678395984a68 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6549407 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
1 parent 13f3bb6 commit f8abe7d

File tree

13 files changed

+27
-39
lines changed

13 files changed

+27
-39
lines changed

front_end/tsconfig.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
"extends": "../config/typescript/tsconfig.base.json",
33
"compilerOptions": {
44
"allowUmdGlobalAccess": true,
5-
"outDir": "ignored"
5+
"outDir": "ignored",
6+
"lib": ["esnext", "dom", "dom.iterable", "webworker", "webworker.iterable"],
7+
"plugins": [
8+
{
9+
"name": "ts-lit-plugin",
10+
"rules": {
11+
"no-complex-attribute-binding": "off",
12+
"no-missing-import": "error",
13+
"no-unknown-tag-name": "error",
14+
"no-unclosed-tag": "error"
15+
}
16+
}
17+
]
618
}
719
}

scripts/devtools_paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function litAnalyzerExecutablePath() {
157157
* @returns the path to the toplevel `tsconfig.json`.
158158
*/
159159
function tsconfigJsonPath() {
160-
return path.join(devtoolsRootPath(), 'tsconfig.json');
160+
return path.join(devtoolsRootPath(), 'front_end', 'tsconfig.json');
161161
}
162162

163163
function downloadedChromeBinaryPath() {

scripts/test/run_lint_check.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ const flags = yargs(hideBin(process.argv))
3232
'Disable cache validations during debugging, useful for custom rule creation/debugging.',
3333
})
3434
.usage('$0 [<files...>]', 'Run the linter on the provided files', yargs => {
35-
yargs.positional('files', {
35+
return yargs.positional('files', {
3636
describe: 'File(s), glob(s), or directories',
37-
type: 'array',
37+
type: 'string',
38+
array: true,
3839
default: [
3940
'front_end',
4041
'inspector_overlay',

test/conductor/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
}

test/e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
},

test/e2e_non_hosted/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"references": [
44
{
55
"path": "../shared/tsconfig.json"

test/interactions/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
},

test/perf/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
},

test/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function forwardOptions(): string[] {
5555

5656
// @ts-expect-error yargs and unparse have slightly different types
5757
const unparsed = unparse(forwardedOptions);
58-
const args = [];
58+
const args: string[] = [];
5959
for (let i = 0; i < unparsed.length - 1; i++) {
6060
if (unparsed[i].startsWith('--') && !Number.isNaN(Number(unparsed[i + 1]))) {
6161
// Mocha errors on --repeat 1 as it expects --repeat=1. We assume

test/shared/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
},
File renamed without changes.

test/unit/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"extends": "../tsconfig.test.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "."
55
},
66
"references": [
77
{
8-
"path": "../conductor"
8+
"path": "../conductor/tsconfig.json"
99
},
1010
{
11-
"path": "../shared"
11+
"path": "../shared/tsconfig.json"
1212
}
1313
]
1414
}

tsconfig.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)