Skip to content

Commit 82948f4

Browse files
committed
Add tsec exemptions for database and auth
1 parent 5606d24 commit 82948f4

File tree

6 files changed

+33
-6
lines changed

6 files changed

+33
-6
lines changed

packages/auth/tsconfig.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist"
4+
"outDir": "dist",
5+
"plugins": [
6+
{
7+
"name": "tsec",
8+
"reportTsecDiagnosticsOnly": true,
9+
"exemptionConfig": "./tsec-exemptions.json"
10+
]
511
},
612
"exclude": [
713
"dist/**/*",
814
"demo/**/*"
915
]
10-
}
16+
}

packages/auth/tsec-exemptions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ban-element-setattribute": ["src/platform_browser/index.ts", "src/platform_browser/load_js.test.ts"]
3+
}

packages/database-compat/tsconfig.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"strict": false,
6-
"downlevelIteration": true
6+
"downlevelIteration": true,
7+
"plugins": [
8+
{
9+
"name": "tsec",
10+
"reportTsecDiagnosticsOnly": true,
11+
"exemptionConfig": "./tsec-exemptions.json"
12+
]
713
},
814
"exclude": [
915
"dist/**/*"
1016
]
11-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ban-script-src-assignments": ["../database/src/realtime/BrowserPollConnection.ts"]
3+
}

packages/database/tsconfig.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"strict": false,
6-
"downlevelIteration": true
6+
"downlevelIteration": true,
7+
"plugins": [
8+
{
9+
"name": "tsec",
10+
"reportTsecDiagnosticsOnly": true,
11+
"exemptionConfig": "./tsec-exemptions.json"
12+
]
713
},
814
"exclude": [
915
"dist/**/*"
1016
]
11-
}
17+
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ban-script-src-assignments": ["src/realtime/BrowserPollConnection.ts"]
3+
}

0 commit comments

Comments
 (0)