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

build(deps-dev): bump eslint-plugin-react-prefer-function-component from 0.0.7 to 3.3.0 in /superset-frontend #30102

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 1, 2024

Bumps eslint-plugin-react-prefer-function-component from 0.0.7 to 3.3.0.

Release notes

Sourced from eslint-plugin-react-prefer-function-component's releases.

v3.3.0

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

eslint.config.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,
];

Full Changelog: tatethurston/eslint-plugin-react-prefer-function-component@v3.2.0...v3.3.0

v3.2.0

  • 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!

New Contributors

Full Changelog: tatethurston/eslint-plugin-react-prefer-function-component@v3.1.0...v3.2.0

v3.1.0

  • 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 />;
      }
    }

... (truncated)

Changelog

Sourced from eslint-plugin-react-prefer-function-component's changelog.

v3.3.0

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

`eslint.config.js`:
import eslint from &quot;@eslint/js&quot;;
import reactRecommended from &quot;eslint-plugin-react/configs/recommended.js&quot;;
import preferFC from &quot;eslint-plugin-react-prefer-function-component/config&quot;;
export default [
{ files: [&quot;**/*.{js,jsx}&quot;] },
eslint.configs.recommended,
reactRecommended,
preferFC.configs.recommended,
];

v3.2.0

  • 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

  • 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

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [eslint-plugin-react-prefer-function-component](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component) from 0.0.7 to 3.3.0.
- [Release notes](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/releases)
- [Changelog](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/blob/main/CHANGELOG.md)
- [Commits](tatethurston/eslint-plugin-react-prefer-function-component@v0.0.7...v3.3.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-react-prefer-function-component
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependabot npm Dependabot - npm related PRs labels Sep 1, 2024
@dosubot dosubot bot added the javascript Dependabot - Pull requests that update Javascript code label Sep 1, 2024
@rusackas rusackas merged commit 78a53bf into master Sep 3, 2024
35 of 36 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/superset-frontend/eslint-plugin-react-prefer-function-component-3.3.0 branch September 3, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependabot dependencies:npm javascript Dependabot - Pull requests that update Javascript code npm Dependabot - npm related PRs size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant