Enforcing best practices for Effector
npm install eslint-plugin-effectorAn ESLint plugin for enforcing best practices for Effector.
For comprehensive documentation, including rules and configuration guides, visit official documentation at eslint.effector.dev.
First, install ESLint and the plugin:
``bashpnpm
pnpm add --save-dev eslint eslint-plugin-effector
Usage
This plugin supports the new flat config format for ESLint. Start by adding the
recommended preset to your eslint.config.js:`js
// eslint.config.js
import effector from "eslint-plugin-effector"export default [
/ ... /
// Include the recommended preset:
effector.flatConfigs.recommended,
]
`To explore all available presets, refer to the Rules section of the documentation. For more details or legacy config usage, see the Installation section.
$3
This plugin leverages TypeScript for accurate linting. You must have TypeScript and type-aware linting configured. For setup instructions, please see the official
typescript-eslint` documentation.