/lint

Personal lint config

Primary LanguageJavaScript

@notekunn/lint

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

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

Setup

  • Clone repo using ssh.

    git clone git@github.com:notekunn/lint.git
  • Install project dependencies

    yarn install

Usage

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

You can create one here.

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

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

Now you have access to notekunn's private packages.

yarn add --dev @notekunn/eslint-config @notekunn/prettier-config @notekunn/tsconfig @notekunn/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"
  }
},