The ESLint configuration I use for my React Typescript side projects. This does not include configuration for Prettier, Stylelint and others which has to be installed and configured separately.
npm i --save-dev eslint eslint-config-diner
# or if you're using yarn
yarn add -D eslint eslint-config-diner
In your .eslintrc
file you can extend like this
module.exports = {
extends: ["diner"],
};
typescript-eslint/eslint-plugin
: Powerful linting rules for Typescripteslint-plugin-promise
: Enforce best practices for using Promises.eslint-plugin-react
andeslint-plugin-react-hooks
: React-specific lint rules