@luckrya/eslint-config-react
Integration of some react rule sets, please refer to Rules below
Installation
$ pnpm add -D @luckrya/eslint-config-react
Usage
.eslintrc.js
module.exports = {
extends: ["@luckrya/react"],
};
{
"scripts": {
"lint": "eslint . --ext .tsx,.ts" // or eslint .
}
}
Rules
- "@luckrya/base"
- "plugin:react/recommended"
- "plugin:react-hooks/recommended"
- "plugin:jsx-a11y/recommended"
- "plugin:prettier/recommended"