@mkvlrn/config
v3.0.5
Published
Opinionated configurations for biome and typescript
Readme
@mkvlrn/config
Custom, opinionated configurations for biome and typescript (tsconfig.json).
To be used in my node projects - aimed at modern, type-safe, non-spaghetti codebases.
They'll work well in most base node, nest, and react (non next) projects without changes, just by extending these configs.
Installation
pnpm add @mkvlrn/config -DUsage
Obs: Both biome and typescript need to be installed separately and be available in the project.
biome
Create your configuration file (biome.json or biome.jsonc):
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"root": true, // if this is the root of your project, false otherwise
"extends": ["@mkvlrn/config/biome"],
"overrides": [
// any overrides, see biome docs
]
}typescript (tsconfig.json)
Create your configuration file:
{
"extends": "@mkvlrn/config/tsconfig",
"compilerOptions": {
// add your custom rules here
}
}Obs: anything related to files needs to be set: rootDir, outDir, baseUrl, paths, etc - this prevents path confusion because the "original" tsconfig will be in node_modules.
License
MIT
