Enforcing best practices for Effector. Documentation available at eslint.effector.dev.
This plugin uses TypeScript for more precise results, but JavaScript is supported too.
Install ESLint and eslint-plugin-effector:
$ pnpm install --dev eslint
$ pnpm install --dev eslint-plugin-effector
$ yarn add --dev eslint
$ yarn add --dev eslint-plugin-effector
$ npm install --dev eslint
$ npm install --dev eslint-plugin-effector
Add effector to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["effector"],
"extends": ["plugin:effector/recommended", "plugin:effector/scope"]
}import { fixupPluginRules } from "@eslint/compat";
import effector from "eslint-plugin-effector";
export default [
{
plugins: {
effector: fixupPluginRules(effector),
},
rules: {
...effector.configs.recommended.rules,
...effector.configs.scope.rules,
},
},
];Read more detailed docs on eslint.effector.dev
- Bump
versionin package.json - Fill CHANGELOG.md
- Commit changes by
git commit -m "Release X.X.X" - Create git tag for release by
git tag -a vX.X.X -m "vX.X.X" - Push changes to remote by
git push --follow-tags - Release package to registry by
pnpm clean-publish - Fill release page with changelog on GitHub