@mad-c/config
v4.1.1
Published
Shared config for different projects
Readme
@mad-c/config
Shared configurations for the following tools:
- TypeScript
- dprint
- oxlint
- Changelog CLI tool to write and update changelogs
- Init script to bootstrap new projects
[!NOTE] All the configurations files set all available configurations for that tool.
Installation
pnpm add -D @mad-c/configConfig Usage
TypeScript
In your tsconfig.json:
{
"extends": "./node_modules/@mad-c/config/src/tsconfig.json",
"include": ["src/**/*", "src/**/*.json"],
"exclude": ["node_modules/**/*", "dist/**/*"],
"compilerOptions": {
// Define libs to include, by default, only "ESNext" is included.
"lib": ["ESNext", "DOM"],
// You have to re-add types explicitly so they can be located.
"typeRoots": ["./node_modules", "./node_modules/@types"],
"types": []
}
}dprint
In your dprint.json:
{
"$schema": "https://dprint.dev/schemas/v0.json",
"extends": "./node_modules/@mad-c/config/src/dprint.json"
}oxlint
In your .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": ["./node_modules/@mad-c/config/src/oxlintrc.json"],
"ignorePatterns": ["dist/**/*", "coverage/**/*"]
}Changelog
This is a small CLI tool to get the latest commits from the repository and output a markdown changelog file.
Full docs are available as docs/changelog.md.
Init
This script initializes a new project with standard configurations and dependencies.
Full docs are available as docs/init.md.
