@xn-sakina/mental

4.2.1 • Public • Published

@xn-sakina/mental

tsconfig.json / prettier / biome base configs

Install

  pnpm add -D @xn-sakina/mental

Tsconfig

Library

Commonjs Library

{
  "extends": "@xn-sakina/mental/lib",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src"]
}

Native ESM Library

Required: package.json > "type": "module"

{
  "extends": "@xn-sakina/mental/lib-native-esm",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src"]
}

React Components Library

{
  "extends": "@xn-sakina/mental/lib-react",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src"]
}

Website Project

React Project

Required: typescript >= 5

{
  "extends": "@xn-sakina/mental/project",
  "include": ["src"]
}

Note

v3 please use (typescript < 5) : @xn-sakina/mental/project-legacy

Optimizations

{
  "compilerOptions": {
    // upgrade output syntax target
    "target": "es6",
    // generate declaration source map
    "declarationMap": true
    // ...
  }
}

Prettier

// .prettierrc.js
module.exports = require('@xn-sakina/mental/prettier')

Biome

// biome.json
{
  "extends": ["./node_modules/@xn-sakina/mental/biome.json"]
}

License

MIT

Package Sidebar

Install

npm i @xn-sakina/mental

Weekly Downloads

877

Version

4.2.1

License

MIT

Unpacked Size

7.23 kB

Total Files

10

Last publish

Collaborators

  • fz6m