@hugomrdias/configs
v0.1.9
Published
JS tooling configs
Downloads
143
Maintainers
Readme
@hugomrdias/configs
JS tooling config
Install
pnpm install @hugomrdias/configs
# in monorepo root install
pnpm install @hugomrdias/configs -w -D
pnpm install @biomejs/biome -w -D
Usage
biome.json
{
"extends": ["@hugomrdias/configs/biome"]
}
package.json
{
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"files": ["dist/src", "src"],
"scripts": {
"lint": "biome check --no-errors-on-unmatched --files-ignore-unknown=true ."
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": "biome check --no-errors-on-unmatched --files-ignore-unknown=true"
}
}
tsconfig.json
{
"extends": "@hugomrdias/configs/tsconfig",
"compilerOptions": {
"outDir": "dist",
"emitDeclarationOnly": true
},
"include": ["src", "test"]
}
For typescript code bases:
{
"extends": "@hugomrdias/configs/tsconfig",
"compilerOptions": {
"outDir": "dist",
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": ["src", "test"]
}
In monorepos you can install @hugomrdias/configs
only in the root and extend the root tsconfig.json
in the packages.
License
MIT © Hugo Dias