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:
19
packages/prettier/package.json
Normal file
19
packages/prettier/package.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@vigdorov/prettier-config",
|
||||
"version": "1.0.0",
|
||||
"description": "Shared Prettier configuration",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": ["dist"],
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"prettier": ">=3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
15
packages/prettier/src/index.ts
Normal file
15
packages/prettier/src/index.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import type {Config} from 'prettier';
|
||||
|
||||
const config: Config = {
|
||||
printWidth: 120,
|
||||
tabWidth: 4,
|
||||
useTabs: false,
|
||||
semi: true,
|
||||
singleQuote: true,
|
||||
trailingComma: 'all',
|
||||
bracketSpacing: false,
|
||||
jsxSingleQuote: false,
|
||||
arrowParens: 'always',
|
||||
};
|
||||
|
||||
export default config;
|
||||
8
packages/prettier/tsconfig.json
Normal file
8
packages/prettier/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user