ESlint plugin includes Tinkoff rules for React applications. Designed to use with @tinkoff/eslint-config
.
Install from npm
npm i --save-dev @tinkoff/eslint-config @tinkoff/eslint-config-react
Then, need to include necessary configurations sets to .eslintrc
. Wee need to choose base configuration, and any
necessary additional configs.
{
"extends": ["@tinkoff/eslint-config/app", "@tinkoff/eslint-config-react"]
}
eslint-plugin-react
- common react lint ruleseslint-plugin-react-hooks
- lint rules for react hooks