Skip to content

Commit 46a76f7

Browse files
committed
Add tsec exemptions for database and auth
1 parent 5606d24 commit 46a76f7

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

packages/auth/tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
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+
}
11+
]
512
},
613
"exclude": [
714
"dist/**/*",
815
"demo/**/*"
916
]
10-
}
17+
}

packages/auth/tsec-exemptions.json

Lines changed: 3 additions & 0 deletions
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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
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+
}
13+
]
714
},
815
"exclude": [
916
"dist/**/*"
1017
]
11-
}
18+
}
Lines changed: 3 additions & 0 deletions
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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
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+
}
13+
]
714
},
815
"exclude": [
916
"dist/**/*"
1017
]
11-
}
18+
}
Lines changed: 3 additions & 0 deletions
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)