@ensi-platform/eslint-config-react
v0.1.2
Published
React ESLint flat config for Ensi packages
Readme
@ensi-platform/eslint-config-react
React ESLint flat config: jsx-runtime, eslint-plugin-react-hooks, and Ensi React rules. Compose with the base config.
Install
pnpm add -D @ensi-platform/eslint-config-base @ensi-platform/eslint-config-react eslintUsage
eslint.config.js:
import base from '@ensi-platform/eslint-config-base';
import react from '@ensi-platform/eslint-config-react';
export default [...base, ...react];Contents
eslint-plugin-react(jsx-runtime+ component rules)eslint-plugin-react-hooks(rules-of-hooks,exhaustive-depsas error)- Arrow functions as the function component style
License
See LICENSE.
