0.1.9 • Published 10 months ago

@hugomrdias/configs v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

0.1.8

1 year ago

0.1.9

10 months ago

0.1.7

1 year ago

0.1.5

1 year ago

0.0.1

1 year ago