Skip to content

Releases: roginfarrer/eslint-plugin-react-server-components

v1.2.0

26 May 20:05
d3c3cf6
Compare
Choose a tag to compare

Minor Changes

  • 560c8be: Added allowedServerHooks option. Hooks specified here will not throw an error in files that do not have the 'use client' directive.

    Example:

    {
      "rules": {
        "react-server-components/use-client": [
          "error",
          { "allowedServerHooks": ["useTranslation"] }
        ]
      }
    }

v1.1.2

15 Feb 04:40
c60fb8a
Compare
Choose a tag to compare

Patch Changes

  • c1f4c62: Allow useId in server and shared components.

v1.1.1

11 Aug 20:01
7a0030f
Compare
Choose a tag to compare

Patch Changes

  • 644f71d: Simplify creation of browser-only globals reference.

v1.1.0

30 Jun 21:35
3717f80
Compare
Choose a tag to compare

Minor Changes

  • 30770a0: Error on class components

v1.0.1

30 Jun 20:37
3a17b08
Compare
Choose a tag to compare

Patch Changes

  • 8f42b00: Fixed detection of 'use client' directive around comments in file header.