This package uses ESLint to enforce VideoAmp's code style and provides a shared base configuration for our Typescript projects.
yarn add eslint-config-videoamp eslint --dev
Create a .eslintrc file in base of your project:
{
extends: 'videoamp'
}
{
extends: 'videoamp/react'
}
Add "prettier": "eslint-config-videoamp/prettier.config"
to your package.json
.
You can make sure this module lints with itself using yarn lint
.