npm install --save-dev @landbot/eslint-config-typescript-react
Create a .eslintrc.js
file in the root of your project with the following:
module.exports = {
extends: ['@landbot/typescript-react'],
};
(Optional) For the prettier configuration, create a .prettierrc.js
file in
the root of your project:
module.exports = require('@landbot/eslint-config-typescript-react/prettier-config');