Skip to content

ahiho/tjs-configs

Repository files navigation

@ahiho/tjs-configs

code style: eslint code style: prettier packaging: lerna release: conventional commits workflow: github actions

Ahiho's ESLint config, Prettier config, TSConfig config.

Requirement

  • NodeJS (version >= 18.x and <= 21)

Setup

  • Clone repo using ssh.

    git clone [email protected]:ahiho/tjs-configs.git
  • Install project dependencies

    yarn install

Usage

Before start, You need a token with Ahiho's private packages access.

You can create one here.

In your project root folder, create a file .npmrc with content:

@ahiho:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_PERSONAL_TOKEN

Now you have access to Ahiho's private packages.

yarn add --dev @ahiho/eslint-config @ahiho/prettier-config @ahiho/tsconfig @ahiho/commitlint-config

Prettier

README

ESLint

README

TSConfig

README

Commitlint

README

Jest

yarn add --dev ts-jest

After installing, update a package's package.json file to add the following properties.

"jest": {
  "transform": {
    "^.+\\.ts$": "ts-jest"
  }
},