#4
Failed
Step #1: Command failed with exit code 1
passed react-hooks/valid/ // Valid because components can use hooks. function ComponentWithHook() { useHook(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because components can use hooks. function createComponentWithHook() { return function ComponentWithHook() { useHook(); }; } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can use hooks. function useHookWithHook() { useHook(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can use hooks. function createHook() { return function useHookWithHook() { useHook(); } } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because components can call functions. function ComponentWithNormalFunction() { doSomething(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because functions can call functions. function normalFunctionWithNormalFunction() { doSomething(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because functions can call functions. function normalFunctionWithConditionalFunction() { if (cond) { doSomething(); } } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because functions can call functions. function functionThatStartsWithUseButIsntAHook() { if (cond) { userFetch(); } } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid although unconditional return doesn't make sense and would fail other rules. // We could make it invalid but it doesn't matter. function useUnreachable() { return; useHook(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function useHook() { useState(); } const whatever = function useHook() { useState(); }; const useHook1 = () => { useState(); }; let useHook2 = () => useState(); useHook2 = () => { useState(); }; ({useHook: () => { useState(); }}); ({useHook() { useState(); }}); const {useHook3 = () => { useState(); }} = {}; ({useHook = () => { useState(); }} = {}); Namespace.useHook = () => { useState(); }; packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function useHook() { useHook1(); useHook2(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function createHook() { return function useHook() { useHook1(); useHook2(); }; } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function useHook() { useState() && a; } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function useHook() { return useHook1() + useHook2(); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can call hooks. function useHook() { return useHook1(useHook2()); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can be used in anonymous arrow-function arguments // to forwardRef. const FancyButton = React.forwardRef((props, ref) => { useHook(); return <button {...props} ref={ref} /> }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can be used in anonymous function arguments to // forwardRef. const FancyButton = React.forwardRef(function (props, ref) { useHook(); return <button {...props} ref={ref} /> }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can be used in anonymous function arguments to // forwardRef. const FancyButton = forwardRef(function (props, ref) { useHook(); return <button {...props} ref={ref} /> }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can be used in anonymous function arguments to // React.memo. const MemoizedFunction = React.memo(props => { useHook(); return <button {...props} /> }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because hooks can be used in anonymous function arguments to // memo. const MemoizedFunction = memo(function (props) { useHook(); return <button {...props} /> }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because classes can call functions. // We don't consider these to be hooks. class C { m() { this.useHook(); super.useHook(); } } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid -- this is a regression test. jest.useFakeTimers(); beforeEach(() => { jest.useRealTimers(); }) packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Valid because they're not matching use[A-Z]. fooState(); use(); _use(); _useState(); use_hook(); // also valid because it's not matching the PascalCase namespace jest.useFakeTimer() packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // Regression test for some internal code. // This shows how the "callback rule" is more relaxed, // and doesn't kick in unless we're confident we're in // a component or a hook. function makeListener(instance) { each(pixelsWithInferredEvents, pixel => { if (useExtendedSelector(pixel.id) && extendedButton) { foo(); } }); } packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
passed react-hooks/valid/ // This is valid because "use"-prefixed functions called in // unnamed function arguments are not assumed to be hooks. React.unknownFunction((foo, bar) => { if (foo) { useNotAHook(bar) } }); packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
  • 1
  • 2
  • 3
  • build 1 of 1
    Commit
    Branch
    Job
    CI
    Submitted By
    Submitted At
    3 months ago
    Submit Reason
    Resubmitted manually
    Queueing Takes
    1 second
    Running Takes
    1 hour 27 minutes 55 seconds
    Reference
    build react#4
    Please wait...
    Page is in error, reload to recover