feat: initial dev-configs monorepo
Shared configs for TypeScript projects: ESLint, Prettier, TypeScript, Vite, Jest, Playwright, Knip. Published as @vigdorov/* npm packages to Gitea registry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
22
packages/typescript/base.json
Normal file
22
packages/typescript/base.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022"],
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUnusedLocals": false,
|
||||
"allowUnreachableCode": false,
|
||||
"allowUnusedLabels": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"incremental": true,
|
||||
"skipLibCheck": true,
|
||||
"isolatedModules": true
|
||||
}
|
||||
}
|
||||
11
packages/typescript/package.json
Normal file
11
packages/typescript/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@vigdorov/typescript-config",
|
||||
"version": "1.0.0",
|
||||
"description": "Shared TypeScript configurations",
|
||||
"type": "module",
|
||||
"files": ["base.json", "react.json"],
|
||||
"exports": {
|
||||
"./base": "./base.json",
|
||||
"./react": "./react.json"
|
||||
}
|
||||
}
|
||||
7
packages/typescript/react.json
Normal file
7
packages/typescript/react.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
||||
"jsx": "react-jsx"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user