Skip to content

ReferenceError: context is not defined #104

@koooge

Description

@koooge

Hi there, #103 has a bug to crash with eslint@9. It's in [email protected]

Oops! Something went wrong! :(

ESLint: 9.22.0

ReferenceError: context is not defined
Occurred while linting /path/to/src/App.tsx:29
Rule: "react-redux/no-unused-prop-types"
    at belongsToReduxReact (/path/to/node_modules/eslint-plugin-react-redux/lib/rules/no-unused-prop-types.js:36:35)
    at /path/to/node_modules/eslint-plugin-react-redux/lib/rules/no-unused-prop-types.js:60:27
    at Array.some (<anonymous>)
    at MemberExpression (/path/to/node_modules/eslint-plugin-react-redux/lib/rules/no-unused-prop-types.js:60:10)
    at MemberExpression (/path/to/node_modules/eslint-rule-composer/lib/rule-composer.js:210:41)
    at ruleErrorHandler (/path/to/node_modules/eslint/lib/linter/linter.js:1160:48)
    at /path/to/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/path/to/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/path/to/node_modules/eslint/lib/linter/node-event-generator.js:297:26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions