Shared ESLint configuration (typescript)
ESLint is used for code linting.
Add Dependencies
Install this package and peerDependencies of this package as devDependencies in the project, using install-peerdeps.
npx install-peerdeps --dev @mintlify/eslint-config-typescript
Alternatively, you can install this package as devDependency and install the peerDependencies separately.
yarn add -D @mintlify/eslint-config-typescript
npm i -D @mintlify/eslint-config-typescript
pnpm add -D @mintlify/eslint-config-typescript
Add Configuration File
Create a .eslintrc.json
file in the project root that extends this package.
{
"extends": "@mintlify/eslint-config-typescript",
...
}