Skip to content

Commit 1054072

Browse files
committed
more tsconfig alignment with brave-core
1 parent c07c8a2 commit 1054072

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export const buildFilter = (ruleList: Rule[]): Filter => {
423423
// independent of the passed element. We use this list to optimize
424424
// applying each operator (i.e., we just check the first element, and then
425425
// accept or reject all elements in the consideration set accordingly).
426-
const fastPathOperatorTypes = [
426+
const fastPathOperatorTypes: OperatorType[] = [
427427
'matches-media',
428428
'matches-path',
429429
]

tsconfig.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"extends": "@tsconfig/node20/tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2020",
5-
"outDir": "./out",
64
"declaration": true,
75
"declarationDir": "./types",
8-
"esModuleInterop": true,
6+
"forceConsistentCasingInFileNames": true,
97
"lib": [
108
"es2016",
119
"dom"
12-
]
10+
],
11+
"module": "esnext",
12+
"moduleResolution": "node",
13+
"noImplicitAny": true,
14+
"noImplicitReturns": true,
15+
"outDir": "./out",
16+
"strictNullChecks": true,
17+
"target": "es2019"
1318
},
1419
"include": [
1520
"./src/**/*.ts"
16-
],
17-
"forceConsistentCasingInFileNames": true,
18-
"noImplicitReturns": true,
19-
"strictNullChecks": true
21+
]
2022
}

0 commit comments

Comments
 (0)