@hugomrdias/configs

0.1.8 • Public • Published

@hugomrdias/configs NPM Version License

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

Package Sidebar

Install

npm i @hugomrdias/configs

Weekly Downloads

29

Version

0.1.8

License

MIT

Unpacked Size

8.01 kB

Total Files

5

Last publish

Collaborators

  • hugomrdias