Skip to content

Commit

Permalink
feat: 添加ts:check命令,移除tsconfig.node等文件
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Dec 17, 2024
1 parent 6f74be0 commit c63c229
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 58 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"preview:dev": "pnpm vite preview -m dev",
"preview:test": "pnpm vite preview -m test",
"preview:pro": "pnpm vite preview -m pro",
"ts:check": "tsc --noEmit",
"lint:eslint": "eslint --max-warnings 0 \"**/*.{ts,tsx,js,jsx,cjs,mjs}\" --fix",
"lint:format": "prettier --write \"**/*.{ts,tsx,js,jsx,cjs,mjs,html}\"",
"lint:style": "stylelint \"**/*.{css,scss}\" --fix",
Expand Down Expand Up @@ -87,4 +88,4 @@
"node": "^18.0.0 || ^20.0.0 || >=22.0.0",
"pnpm": ">=9"
}
}
}
32 changes: 0 additions & 32 deletions tsconfig.app.json

This file was deleted.

32 changes: 30 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
{
"files": [],
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,

/** 别名路径提示 */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["**/*.ts", "src/**/*.d.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist", "dist-*"]
}
23 changes: 0 additions & 23 deletions tsconfig.node.json

This file was deleted.

0 comments on commit c63c229

Please sign in to comment.