Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency eslint-plugin-react-prefer-function-component to v3 #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 15, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-plugin-react-prefer-function-component 2.0.0 -> 3.4.0 age adoption passing confidence

Release Notes

tatethurston/eslint-plugin-react-prefer-function-component (eslint-plugin-react-prefer-function-component)

v3.4.0

Compare Source

v3.3.0

Compare Source

Adds ESLint's new configuration system, flat config. If you're using the new flat config:

`eslint.config.js`:

```js
import eslint from "@​eslint/js";
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import preferFC from "eslint-plugin-react-prefer-function-component/config";

export default [
  { files: ["**/*.{js,jsx}"] },
  eslint.configs.recommended,
  reactRecommended,
  preferFC.configs.recommended,
];
```

v3.2.0

Compare Source

  • The plugin's recommended configuration has been fixed, so plugins can be dropped from your .eslintrc when using the recommended settings:

    module.exports = {
    -  plugins: ["react-prefer-function-component"],
      extends: ["plugin:react-prefer-function-component/recommended"],
    };

    Thanks @​alecmev!

v3.1.0

Compare Source

  • New option: allowJsxUtilityClass. This configuration option permits JSX utility classes: classes that have methods that return JSX but are not themselves components(they do not extend from a Component class or have a render method).

    The following is now permitted when enabling this configuration option:

    class Foo {
      getBar() {
        return <Bar />;
      }
    }

    Thanks noahm for the contribution!

v3.0.0

Compare Source

Detects class components that extend the Component class, even if they do not use any JSX. Now errors on manager, business logic, and other renderless class components that extend Component. Previously the below was not caught:

class TimerComponent extends React.Component {
  /// ...

  componentWillMount() {
    this.startTimer();
  }

  componentWillUnmount() {
    this.stopTimer();
  }

  render() {
    null;
  }
}

Thanks @​wo1ph for the improvements!


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 1:23am

@renovate renovate bot force-pushed the renovate/eslint-plugin-react-prefer-function-component-3.x branch from 64d3fea to 3c4ce4a Compare August 18, 2024 18:04
@renovate renovate bot force-pushed the renovate/eslint-plugin-react-prefer-function-component-3.x branch from 3c4ce4a to 6b63d0d Compare August 25, 2024 21:26
@renovate renovate bot force-pushed the renovate/eslint-plugin-react-prefer-function-component-3.x branch from 6b63d0d to 5349e61 Compare September 1, 2024 08:52
@renovate renovate bot force-pushed the renovate/eslint-plugin-react-prefer-function-component-3.x branch from 5349e61 to c32f7a1 Compare January 13, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants