Would be awesome to be able to autofix this. Anyone wanna do it?! :) as seen on twitter
Contributor guide
Tech stack
javascriptreactnodejs
Domain
toolingdeveloper experience
Issue type
feature
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
1-3 hours
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
needs investigation
Prerequisites
Understanding of ESLint rule structureFamiliarity with React stateless componentsKnowledge of ESLint fixer API
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
45
Research direction
Examine the current implementation of the `prefer stateless function` rule in the `lib/rules/` directory. Look at how other rules in the plugin, such as `jsx no target blank`, implement autofixes for guidance. Review the ESLint documentation on the `context.report` fixer API to understand how to propose fixes. Discuss any questions or design decisions in the issue comments before starting work.
Add fix to prefer-stateless-function · jsx-eslint/eslint-plugin-react#1096 | Good First Issue