An eslint sharable config for typescript project. This config include @prestashopcorp/eslint-config, @typescript-eslint/recommended-type-checked and @typescript-eslint/stylistic-type-checked rules.
This package is published in an Npm private registry.
if it is not done, you have to set the authentication config by running this commands:
npm set "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN"
npm set "@prestashopcorp:registry=https://npm.pkg.github.com"
yarn install -D @prestashopcorp/eslint-config-ts
Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.
Add this to your .eslintrc file:
{
"extends": "@prestashopcorp/eslint-config-ts"
}