Ahiho's ESLint config, Prettier config, TSConfig config.
- NodeJS (version >= 18.x and <= 21)
-
Clone repo using ssh.
git clone [email protected]:ahiho/tjs-configs.git
-
Install project dependencies
yarn install
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
yarn add --dev ts-jest
After installing, update a package's package.json
file to add the following properties.
"jest": {
"transform": {
"^.+\\.ts$": "ts-jest"
}
},