0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00
Independent technology for modern publishing, memberships, subscriptions and newsletters.
Find a file
renovate[bot] 1383e383aa
Update dependency eslint-plugin-react-refresh to v0.4.19 (#22690)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-react-refresh](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh)
| [`0.4.3` ->
`0.4.19`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.3/0.4.19)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-react-refresh/0.4.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-react-refresh/0.4.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-react-refresh/0.4.3/0.4.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-react-refresh/0.4.3/0.4.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ArnaudBarre/eslint-plugin-react-refresh
(eslint-plugin-react-refresh)</summary>

###
[`v0.4.19`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0419)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.18...v0.4.19)

Add name to configs for [ESLint Config
Inspector](https://redirect.github.com/eslint/config-inspector)

###
[`v0.4.18`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0418)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.17...v0.4.18)

ESM/CJS interop is the worse that happened to this ecosystem, this is
all I have to say.

###
[`v0.4.17`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0417)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.16...v0.4.17)

- Fix detection of local components to not generate warning on for
variable inside JSX files that follow React component naming (fixes
[#&#8203;75](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/75))
- Update types to not require extra unnecessary `.default` property
access under TS node16 module resolution (fixes
[#&#8203;70](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/70))

###
[`v0.4.16`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0416)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.15...v0.4.16)

Fix CJS/ESM interop issue. Sorry everyone for the trouble.

###
[`v0.4.15`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0415)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.14...v0.4.15)

##### Add support for custom HOCs
([#&#8203;60](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/60))

By default, the rule only knows that `memo` & `forwardRef` function
calls with return a React component. With this option, you can also
allow extra function names like Mobx observer to make this code valid:

```tsx
const Foo = () => <></>;
export default observer(Foo);
```

```json
{
  "react-refresh/only-export-components": [
    "error",
    { "customHOCs": ["observer"] }
  ]
}
```

Thanks [@&#8203;HorusGoul](https://redirect.github.com/HorusGoul)!

##### Add recommended config and simple types
([#&#8203;67](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/67))

You can now add the recommended config to your ESLint config like this:

```js
import reactRefresh from "eslint-plugin-react-refresh";

export default [
  /* Main config */
  reactRefresh.configs.recommended, // Or reactRefresh.configs.vite for Vite users
];
```

To follow ESLint recommandations, the rule is added with the `error`
severity.

Some simple types ensure that people typecheking their config won't need
`@ts-expect-error` anymore.

##### Bump ESLint peer dependency to 8.40

This was actually done by mistake in the previous release when moving
from a deprecated API to a new one.

Given that ESLint 8 is officialy end-of-life and the only report
([#&#8203;56](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/56))
didn't get likes, I'm going forward and documenting the expected minimum
version from ESLin in the package JSON so that people can get warning
from their package manager.

###
[`v0.4.14`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0414)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.13...v0.4.14)

- Warn if a context is exported alongside a component (fixes
[#&#8203;53](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/53)).
Thanks [@&#8203;IgorAufricht](https://redirect.github.com/IgorAufricht)!

###
[`v0.4.13`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0413)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.12...v0.4.13)

- Support for `react-redux` connect (`export default
connect(mapStateToProps, mapDispatchToProps)(MyComponent)`) (fixes
[#&#8203;51](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/51))
- Support for [Arbitrary Module
Identifiers](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#support-for-arbitrary-module-identifiers)
syntax (fixes
[#&#8203;52](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/52))

###
[`v0.4.12`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0412)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.11...v0.4.12)

- Support type assertion on default export (fixes
[#&#8203;48](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/48))
- Add default export to fix usage with jiti (fixes
[#&#8203;50](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/50))

###
[`v0.4.11`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0411)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.10...v0.4.11)

- Ignore type exports (ex. `export type foo = string;`) (fixes
[#&#8203;47](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/47))

###
[`v0.4.10`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0410)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.9...v0.4.10)

- Support `function Foo() {}; export default React.memo(Foo)`
([#&#8203;46](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/46))
(thanks [@&#8203;SukkaW](https://redirect.github.com/SukkaW)!)

###
[`v0.4.9`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#049)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.8...v0.4.9)

- Support `function Foo() {}; export default memo(Foo)` (fixes
[#&#8203;44](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/44))
(thanks [@&#8203;SukkaW](https://redirect.github.com/SukkaW)!)

###
[`v0.4.8`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#048)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.7...v0.4.8)

- Support `export const foo = -1` with `allowConstantExport` (fixes
[#&#8203;43](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/43))

###
[`v0.4.7`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#047)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.6...v0.4.7)

- Support `export { Component as default }` (fixes
[#&#8203;41](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/41))

###
[`v0.4.6`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#046)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.5...v0.4.6)

- Ignore cypress test files
([#&#8203;39](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/39))

###
[`v0.4.5`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#045)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.4...v0.4.5)

- Allow `TaggedTemplateExpression` for styled components (fixes
[#&#8203;32](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/32))

###
[`v0.4.4`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#044)

[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.3...v0.4.4)

- Add `allowExportNames` option (fixes
[#&#8203;29](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/29))
- Support memo default export function components (fixes
[#&#8203;27](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/27))
- Warn on export expressions that are not React component (array,
object, logical expression, ...) (fixes
[#&#8203;26](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/26))

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-30 19:33:45 +00:00
.devcontainer Added redis data volume to compose setup (#21906) 2024-12-17 13:14:21 -08:00
.docker Added tinybird-cli to devcontainer (#22662) 2025-03-27 15:42:24 -07:00
.github Added login to dockerhub to CI pipeline (#22708) 2025-03-30 20:21:12 +01:00
.vscode Added configuration for the Tinybird VSCode Extension (#22636) 2025-03-25 12:45:56 -07:00
apps Update dependency eslint-plugin-react-refresh to v0.4.19 (#22690) 2025-03-30 19:33:45 +00:00
ghost Update dependency sinon to v19.0.5 (#22692) 2025-03-30 16:57:00 +00:00
.dockerignore Improved docker development setup (#22177) 2025-02-18 23:47:39 +00:00
.editorconfig
.env.example Added .env.example file to simplify getting started with docker compose (#22247) 2025-02-19 13:16:30 -08:00
.gitattributes
.gitignore Added tooling for running sql directly in tb (#22651) 2025-03-26 16:50:03 +00:00
.gitmodules
compose.yml Moved @tryghost/identity-token-service to services folder 2025-03-27 15:03:05 +01:00
LICENSE 2025 2025-01-06 11:40:59 +00:00
nx.json Added build:ts dependency to yarn test:unit (#21328) 2024-10-16 12:15:14 -07:00
package.json Added tinybird-cli to devcontainer (#22662) 2025-03-27 15:42:24 -07:00
PRIVACY.md Removed outdated line from PRIVACY.md (#18789) 2023-12-13 12:39:45 +01:00
README.md 2025 2025-01-06 11:40:59 +00:00
SECURITY.md
yarn.lock Update dependency eslint-plugin-react-refresh to v0.4.19 (#22690) 2025-03-30 19:33:45 +00:00

 

Ghost Ghost

 

Ghost.orgForumDocsContributingTwitter

Downloads Latest release Build status Contributors

 

Fiercely independent, professional publishing. Ghost is the most popular open source, headless Node.js CMS which already works with all the tools you know and love.

 

Ghost(Pro) Ghost(Pro)

The easiest way to get a production instance deployed is with our official Ghost(Pro) managed service. It takes about 2 minutes to launch a new site with worldwide CDN, backups, security and maintenance all done for you.

For most people this ends up being the best value option because of how much time it saves — and 100% of revenue goes to the Ghost Foundation; funding the maintenance and further development of the project itself. So youll be supporting open source software and getting a great service!

 

Quickstart install

If you want to run your own instance of Ghost, in most cases the best way is to use our CLI tool

npm install ghost-cli -g

 

Then, if installing locally add the local flag to get up and running in under a minute - Local install docs

ghost install local

 

or on a server run the full install, including automatic SSL setup using LetsEncrypt - Production install docs

ghost install

 

Check out our official documentation for more information about our recommended hosting stack & properly upgrading Ghost, plus everything you need to develop your own Ghost themes or work with our API.

Contributors & advanced developers

For anyone wishing to contribute to Ghost or to hack/customize core files we recommend following our full development setup guides: Contributor guideDeveloper setup

 

Ghost sponsors

A big thanks to our sponsors and partners who make Ghost possible. If you're interested in sponsoring Ghost and supporting the project, please check out our profile on GitHub sponsors ❤️

DigitalOceanFastly

 

Getting help

Everyone can get help and support from a large community of developers over on the Ghost forum. Ghost(Pro) customers have access to 24/7 email support.

To stay up to date with all the latest news and product updates, make sure you subscribe to our changelog newsletter — or follow us on Twitter, if you prefer your updates bite-sized and facetious. 🎷🐢

 

Copyright & license

Copyright (c) 2013-2025 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.