Skip to content

Commit 8428eac

Browse files
committed
fix: [OSM-2746] Fixed bundle generation by splitting out the eslint-specific tsconfig
1 parent 546446f commit 8428eac

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default tseslint.config({
1111
languageOptions: {
1212
parserOptions: {
1313
parser: '@typescript-eslint/parser',
14-
project: "./tsconfig.json"
14+
project: "./tsconfig.eslint.json"
1515
},
1616
},
1717
plugins: {

tsconfig.eslint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "/dev/null",
5+
},
6+
"include": [
7+
"./lib/**/*",
8+
"./test/**/*"
9+
]
10+
}

tsconfig.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22
"compilerOptions": {
33
"outDir": "./dist",
44
"pretty": true,
5-
"target": "es2015",
6-
"lib": ["es2015"],
5+
"target": "es2019",
6+
"lib": ["es2019"],
77
"module": "commonjs",
8+
"allowJs": false,
89
"sourceMap": true,
910
"declaration": true,
1011
"importHelpers": true,
1112
"strict": true,
1213
"noImplicitAny": false
1314
},
14-
"include": [
15-
"lib",
16-
"test"
17-
],
18-
"files": [
19-
"node_modules/typescript/lib/lib.es6.d.ts"
20-
],
21-
"exclude": [
22-
"node_modules"
23-
]
15+
"include": ["./lib/**/*"]
2416
}

0 commit comments

Comments
 (0)