@redux-workflow/eslint-plugin
v0.1.0
Published
ESLint rules for @redux-workflow — enforces yield* usage
Maintainers
Readme
@redux-workflow/eslint-plugin
ESLint rules for redux-workflow. Currently ships one rule:
@redux-workflow/require-yield-star— flagsyield <effect>(...)and auto-fixes toyield* <effect>(...)so TypeScript can infer the correct return type fromtyped-redux-sagaeffects.
Install
pnpm add -D @redux-workflow/eslint-plugineslint (>=9) is a peer dependency.
Usage (flat config)
Spread the recommended preset:
// eslint.config.ts
import reduxWorkflowRecommended from '@redux-workflow/eslint-plugin/configs/recommended';
export default [reduxWorkflowRecommended];Or wire the rule manually:
import reduxWorkflow from '@redux-workflow/eslint-plugin';
export default [
{
plugins: { '@redux-workflow': reduxWorkflow },
rules: {
'@redux-workflow/require-yield-star': 'error',
},
},
];Documentation
Full docs at redux-workflow.dev.
License
MIT © Guillaume Jasmin
