Skip to content

Commit 9a53c8e

Browse files
committed
fix: correct tsconfig root
1 parent bc8482f commit 9a53c8e

File tree

12 files changed

+57
-21
lines changed

12 files changed

+57
-21
lines changed

apps/benchmark/eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,9 +15,10 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'apps/benchmark/tsconfig.app.json',
17-
'apps/benchmark/tsconfig.spec.json',
18+
'./tsconfig.app.json',
19+
'./tsconfig.spec.json',
1820
],
21+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1922
},
2023
},
2124
},

apps/docs-generator/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44

55
import { defineConfig, globalIgnores } from "eslint/config";
66
import baseConfig from "../../eslint.config.mjs";
7+
import { dirname } from 'node:path';
8+
import { fileURLToPath } from 'node:url';
79

810
export default defineConfig(baseConfig, [globalIgnores(["!**/*"]), {
911
languageOptions: {
1012
ecmaVersion: 5,
1113
sourceType: "script",
1214

1315
parserOptions: {
14-
project: ["apps/docs-generator/tsconfig.app.json"],
16+
project: ["./tsconfig.app.json"],
17+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1518
},
1619
},
1720
}, {

apps/docs/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
const configs = [
810
{
@@ -12,7 +14,8 @@ const configs = [
1214
{
1315
languageOptions: {
1416
parserOptions: {
15-
project: ['apps/docs/tsconfig.app.json'],
17+
project: ['./tsconfig.app.json'],
18+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url)),
1619
},
1720
},
1821
},

apps/interpreter/eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,9 +15,10 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'apps/interpreter/tsconfig.app.json',
17-
'apps/interpreter/tsconfig.spec.json',
18+
'./tsconfig.app.json',
19+
'./tsconfig.spec.json',
1820
],
21+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1922
},
2023
},
2124
},

apps/language-server-web-worker/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -12,7 +14,8 @@ export default [
1214
{
1315
languageOptions: {
1416
parserOptions: {
15-
project: ['apps/language-server-web-worker/tsconfig.app.json'],
17+
project: ['./tsconfig.app.json'],
18+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1619
},
1720
},
1821
},

apps/vs-code-extension/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -12,7 +14,8 @@ export default [
1214
{
1315
languageOptions: {
1416
parserOptions: {
15-
project: ['apps/vs-code-extension/tsconfig.app.json'],
17+
project: ['./tsconfig.app.json'],
18+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1619
},
1720
},
1821
},

libs/execution/eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,9 +15,10 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'libs/execution/tsconfig.lib.json',
17-
'libs/execution/tsconfig.spec.json',
18+
'./tsconfig.lib.json',
19+
'./tsconfig.spec.json',
1820
],
21+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1922
},
2023
},
2124
},

libs/extensions/rdbms/exec/eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,9 +15,10 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'libs/extensions/rdbms/exec/tsconfig.lib.json',
17-
'libs/extensions/rdbms/exec/tsconfig.spec.json',
18+
'./tsconfig.lib.json',
19+
'./tsconfig.spec.json',
1820
],
21+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1922
},
2023
},
2124
},

libs/extensions/std/exec/eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,9 +15,10 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'libs/extensions/std/exec/tsconfig.lib.json',
17-
'libs/extensions/std/exec/tsconfig.spec.json',
18+
'./tsconfig.lib.json',
19+
'./tsconfig.spec.json',
1820
],
21+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
1922
},
2023
},
2124
},

libs/extensions/tabular/exec/eslint.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import baseConfig from '../../../../eslint.config.mjs';
6+
import { dirname } from 'node:path';
7+
import { fileURLToPath } from 'node:url';
68

79
export default [
810
{
@@ -13,10 +15,11 @@ export default [
1315
languageOptions: {
1416
parserOptions: {
1517
project: [
16-
'libs/extensions/tabular/exec/tsconfig.lib.json',
17-
'libs/extensions/tabular/exec/tsconfig.spec.json',
18-
'libs/extensions/tabular/exec/tsconfig.mock.json',
18+
'./tsconfig.lib.json',
19+
'./tsconfig.spec.json',
20+
'./tsconfig.mock.json',
1921
],
22+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
2023
},
2124
},
2225
},

0 commit comments

Comments
 (0)