v1.0.0
This library provides extensible ESLint configurations with the linting rules that are used across Yext repos. There are two exported configs: the default export is a config for Typescript repos, and the “typescript-react” export is a config for repos using React with Typescript.
Install the configs with
npm install @yext/eslint-config
You can use these configs when configuring ESLint as follows. For Typescript repos,
{
extends: [
'@yext/eslint-config'
]
}
For repos using React with Typescript,
{
extends: [
'@yext/eslint-config/typescript-react'
]
}