8000 Results of weekly scheduled smoke test · Issue #3178 · jsx-eslint/eslint-plugin-react · GitHub
[go: up one dir, main page]

Skip to content
Results of weekly scheduled smoke test #3178
Closed
@github-actions

Description

@github-actions

Detected 1 ESLint reports and/or crashes.
Scanned 2818 repositories.

Rules:

  • react/hook-use-state
Click to expand

Rule: react/hook-use-state

  • Message: Cannot read property 'defs' of null Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/maxim-andrews/setup-app-suite/packages/setup-app-templates/templates/react/src/Components/ServerFetch/index.js:143 Rule: "react/hook-use-state"
  • Path: maxim-andrews/setup-app-suite/packages/setup-app-templates/templates/react/src/Components/ServerFetch/index.js
  • Link
  141 | } else {
  142 |   function ServerFetch () {
> 143 |     const [ state, dispatch ] = useReducer(reducer, initStore());
  144 |
  145 |     function fetchServerData () {
  146 |       if (state.fetching) {
TypeError: Cannot read property 'defs' of null
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/maxim-andrews/setup-app-suite/packages/setup-app-templates/templates/react/src/Components/ServerFetch/index.js:143
Rule: "react/hook-use-state"
    at Object.isReactHookCall (/github/workspace/lib/util/Components.js:845:90)
    at Object.CallExpression (/github/workspace/lib/rules/hook-use-state.js:39:38)
    at updatedRuleInstructions.<computed> (/github/workspace/lib/util/Components.js:1039:45)
    at ruleErrorHandler (/github/workspace/node_modules/eslint/lib/linter/linter.js:1079:28)
    at /github/workspace/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0