@bewitching-eggs/configs

1.1.3 • Public • Published

Configs

Common configs.

Usage

Eslint preset

Add to package.json:

{
  "eslintConfig": {
    "extends": "./node_modules/@bewitching-eggs/configs/eslint/<browser | server>"
  }
}

Prettier preset

Add to package.json:

{
  "prettier": "@bewitching-eggs/configs/prettier"
}

Commitlint preset

Add to package.json:

{
  "commitlint": {
    "extends": "@bewitching-eggs/configs/commitlint"
  }
}

Husky preset

Run the command: npx husky init Then copy files from directory: packages/configs/husky/hooks to husky directory in your project: .husky/

Lint-staged preset

Firstly, create lint-staged.config.js file. Then, add config:

module.exports = require('@bewitching-eggs/configs/lint-staged');

Tsconfig preset

Firstly, create tsconfig.json file. Then, add config:

{
  "extends": "@bewitching-eggs/configs/tsconfig/<browser | server>/tsconfig.json",
  "compilerOptions": {
    "typeRoots": ["./src/typings", "./node_modules/@types"]
  },
  "include": ["src"],
  "references": [{ "path": "./tsconfig.vite.json" }]
}

If you using the server config do not forget to specify outDir setting.

{
  "compilerOptions": {
    "outDir": "dist"
  }
}

Firstly, create tsconfig.vite.json file. Then, add config:

{
  "extends": "@bewitching-eggs/configs/tsconfig/browser/tsconfig.vite.json",
  "include": ["vite.config.ts", "pwa.config.ts"]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @bewitching-eggs/configs

Weekly Downloads

85

Version

1.1.3

License

MIT

Unpacked Size

14.1 kB

Total Files

15

Last publish

Collaborators

  • makvagabo
  • gbn_101
  • noonoo
  • bewitching-eggs-admin