Skip to content

Commit 89a75df

Browse files
committed
fix: typescript settings
1 parent 6f3074b commit 89a75df

File tree

9 files changed

+16
-12
lines changed

9 files changed

+16
-12
lines changed

configs/eslint-config-custom/eslint.config.typescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/// <reference types="node" />
23

34
import { cwd } from "node:process";
45
import globals from "globals";

examples/react-swc/eslint.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const PACKAGE_ROOT = resolve(cwd());
1313
export default defineConfig(
1414
eslint.configs.recommended,
1515
...tseslint.configs.recommendedTypeChecked,
16+
reactHooksPlugin.configs.flat.recommended,
1617
{
1718
languageOptions: {
1819
parserOptions: {
@@ -43,10 +44,7 @@ export default defineConfig(
4344
"warn",
4445
{ allowConstantExport: true },
4546
],
46-
},
47-
extends: [
48-
"react-hooks/recommended"
49-
]
47+
}
5048
},
5149
{
5250
files: ["*.js", "*.cjs", "*.mjs"],

packages/css-additional-types/tsconfig.codegen.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"rootDir": "./codegen",
55
"baseUrl": "./",
66
"tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-codegen",
7-
"outDir": "./.cache/codegen/"
7+
"outDir": "./.cache/codegen/",
8+
"types": ["node"]
89
},
910
"include": [
1011
"global.d.ts",

packages/esbuild/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { dirname, join } from "node:path";
12
import { processVanillaFile } from "@vanilla-extract/integration";
23
import { vanillaExtractPlugin } from "@vanilla-extract/esbuild-plugin";
34
import { Plugin as EsbuildPlugin } from "esbuild";
4-
import { dirname, join } from "path";
55
import { babelTransform, compile } from "@mincho-js/integration";
66

77
interface MinchoEsbuildPluginOptions {

packages/esbuild/tsconfig.lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"baseUrl": "./",
66
"tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-esm",
77
"outDir": "./dist/esm",
8-
"declarationDir": "./dist/esm"
8+
"declarationDir": "./dist/esm",
9+
"types": ["node"]
910
},
1011
"include": [
1112
"src/**/*.ts",

packages/integration/src/compile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { basename, dirname, join } from "node:path";
2+
import * as fs from "node:fs";
13
import { addFileScope, getPackageInfo } from "@vanilla-extract/integration";
24
import defaultEsbuild, { PluginBuild } from "esbuild";
35
import { transformSync } from "@babel/core";
4-
import { basename, dirname, join } from "path";
5-
import * as fs from "fs";
66
import { minchoStyledComponentPlugin } from "@mincho-js/babel";
77

88
interface CompileOptions {

packages/integration/tsconfig.lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"baseUrl": "./",
66
"tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-esm",
77
"outDir": "./dist/esm",
8-
"declarationDir": "./dist/esm"
8+
"declarationDir": "./dist/esm",
9+
"types": ["node"]
910
},
1011
"include": [
1112
"src/**/*.ts",

packages/vite/tsconfig.lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"baseUrl": "./",
66
"tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-esm",
77
"outDir": "./dist/esm",
8-
"declarationDir": "./dist/esm"
8+
"declarationDir": "./dist/esm",
9+
"types": ["node"]
910
},
1011
"include": [
1112
"src/**/*.ts",

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"vite.config.ts"
1515
],
1616
"outputs": [
17+
".cache/typescript/*",
1718
"dist/**"
1819
]
1920
},
@@ -79,7 +80,7 @@
7980
}
8081
},
8182
"globalDependencies": [
82-
"package.json", "yarn.lock", "**/tsconfig.json"
83+
"package.json", "yarn.lock", "**/tsconfig.json", "**/tsconfig.*.json"
8384
],
8485
"cacheDir": ".cache/turbo"
8586
}

0 commit comments

Comments
 (0)