Skip to content

Commit

Permalink
Release 0.3.4 [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Feb 10, 2023
1 parent b662963 commit ac7ecec
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
if: ${{ contains(github.event.head_commit.message, '[publish]') }}
steps:
- uses: actions/checkout@v3
- uses: xhyrom/setup-bun@v0.1.8
- uses: oven-sh/setup-bun@v0.1.8
- run: bun install
- run: bun ci
- uses: ArnaudBarre/npm-publish@v1
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog

## 0.3.4

Report default CallExpression exports (#7) (Fixes #6)

This allows to report a warning for this kind of patterns that creates anonymous components:

`export default compose()(MainComponent)`

## 0.3.3

Add checkJS option (#5) (Fixes #4)
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -51,6 +51,7 @@ export const Foo = () => <></>;

```jsx
export default function () {}
export default compose()(MainComponent)
```

```jsx
Expand Down
Binary file modified bun.lockb
Binary file not shown.
7 changes: 2 additions & 5 deletions package.json
@@ -1,20 +1,17 @@
{
"name": "eslint-plugin-react-refresh",
"version": "0.3.3",
"version": "0.3.4",
"license": "MIT",
"scripts": {
"build": "scripts/bundle.ts",
"prettier": "yarn prettier-ci --write",
"prettier": "bun prettier-ci --write",
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,json,md,yml}'",
"test": "src/tests.ts",
"ci": "tsc && bun prettier-ci && bun test && bun run build"
},
"prettier": {
"trailingComma": "all"
},
"peerDependencies": {
"eslint": ">=7"
},
"devDependencies": {
"@nabla/tnode": "^0.7.0",
"@types/eslint": "^8.4.10",
Expand Down
10 changes: 8 additions & 2 deletions scripts/bundle.ts
Expand Up @@ -13,7 +13,9 @@ build({
outdir: "dist",
platform: "node",
target: "node14",
external: Object.keys(packageJSON.peerDependencies),
// https://github.com/oven-sh/bun/issues/2037
// external: Object.keys(packageJSON.peerDependencies),
external: ["eslint"],
}).then(() => {
execSync("cp LICENSE README.md dist/");

Expand All @@ -36,7 +38,11 @@ build({
"react-refresh",
"fast refresh",
],
peerDependencies: packageJSON.peerDependencies,
// https://github.com/oven-sh/bun/issues/2037
// peerDependencies: packageJSON.peerDependencies,
peerDependencies: {
eslint: ">=7",
},
},
null,
2,
Expand Down
89 changes: 47 additions & 42 deletions yarn.lock
@@ -1,6 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: 25D3EDDFBFF76B52-fe5eadc2c1e3c254-61386272FA8CC9AB-88c79397acfa689b
# bun ./bun.lockb --hash: 93600688C9B3DE59-292833c56e5446e7-2E4AAAE5DEEBDFAC-15487524fa2ff15d


"@esbuild/android-arm@0.15.13":
Expand All @@ -13,25 +13,25 @@
resolved "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.13.tgz"
integrity sha512-+BoyIm4I8uJmH/QDIH0fu7MG0AEx9OXEDXnqptXCwKOlOqZiS4iraH1Nr7/ObLMokW3sOCeBNyD68ATcV9b9Ag==

"@eslint/eslintrc@^1.3.3":
version "1.3.3"
resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz"
integrity sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==
"@eslint/eslintrc@^1.4.1":
version "1.4.1"
resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz"
integrity sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==
dependencies:
ajv "^6.12.4"
debug "^4.3.2"
espree "^9.4.0"
globals "^13.15.0"
globals "^13.19.0"
ignore "^5.2.0"
import-fresh "^3.2.1"
js-yaml "^4.1.0"
minimatch "^3.1.2"
strip-json-comments "^3.1.1"

"@humanwhocodes/config-array@^0.11.6":
version "0.11.7"
resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz"
integrity sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==
"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"
resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz"
integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==
dependencies:
"@humanwhocodes/object-schema" "^1.2.1"
debug "^4.1.1"
Expand Down Expand Up @@ -151,10 +151,10 @@
"@typescript-eslint/types" "5.42.1"
eslint-visitor-keys "^3.3.0"

acorn@^8.8.0:
version "8.8.1"
resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz"
integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==
"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.8.0:
version "8.8.2"
resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz"
integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==

acorn-jsx@^5.3.2:
version "5.3.2"
Expand All @@ -163,7 +163,7 @@ acorn-jsx@^5.3.2:

ajv@^6.10.0, ajv@^6.12.4:
version "6.12.6"
resolved ""
resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz"
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
dependencies:
fast-deep-equal "^3.1.1"
Expand Down Expand Up @@ -412,12 +412,12 @@ escape-string-regexp@^4.0.0:
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==

eslint@^8.27.0:
version "8.27.0"
resolved "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz"
integrity sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==
version "8.33.0"
resolved "https://registry.npmjs.org/eslint/-/eslint-8.33.0.tgz"
integrity sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==
dependencies:
"@eslint/eslintrc" "^1.3.3"
"@humanwhocodes/config-array" "^0.11.6"
"@eslint/eslintrc" "^1.4.1"
"@humanwhocodes/config-array" "^0.11.8"
"@humanwhocodes/module-importer" "^1.0.1"
"@nodelib/fs.walk" "^1.2.8"
ajv "^6.10.0"
Expand All @@ -436,7 +436,7 @@ eslint@^8.27.0:
file-entry-cache "^6.0.1"
find-up "^5.0.0"
glob-parent "^6.0.2"
globals "^13.15.0"
globals "^13.19.0"
grapheme-splitter "^1.0.4"
ignore "^5.2.0"
import-fresh "^3.0.0"
Expand Down Expand Up @@ -584,7 +584,7 @@ find-up@^5.0.0:

flat-cache@^3.0.4:
version "3.0.4"
resolved ""
resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz"
integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==
dependencies:
flatted "^3.1.0"
Expand All @@ -597,12 +597,12 @@ flatted@^3.1.0:

fs.realpath@^1.0.0:
version "1.0.0"
resolved ""
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

glob@^7.1.3:
version "7.2.3"
resolved ""
resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz"
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
dependencies:
fs.realpath "^1.0.0"
Expand All @@ -626,10 +626,10 @@ glob-parent@^6.0.2:
dependencies:
is-glob "^4.0.3"

globals@^13.15.0:
version "13.17.0"
resolved ""
integrity sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==
globals@^13.19.0:
version "13.20.0"
resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz"
integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==
dependencies:
type-fest "^0.20.2"

Expand Down Expand Up @@ -660,6 +660,11 @@ ignore@^5.2.0:
resolved ""
integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==

ignore@^5.2.0:
version "5.2.4"
resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz"
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==

import-fresh@^3.0.0, import-fresh@^3.2.1:
version "3.3.0"
resolved ""
Expand All @@ -675,7 +680,7 @@ imurmurhash@^0.1.4:

inflight@^1.0.4:
version "1.0.6"
resolved ""
resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
dependencies:
once "^1.3.0"
Expand Down Expand Up @@ -714,20 +719,20 @@ isexe@^2.0.0:
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==

js-sdsl@^4.1.4:
version "4.1.5"
resolved "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz"
integrity sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==
version "4.3.0"
resolved "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz"
integrity sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==

js-yaml@^4.1.0:
version "4.1.0"
resolved ""
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"

json-schema-traverse@^0.4.1:
version "0.4.1"
resolved ""
resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz"
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==

json-stable-stringify-without-jsonify@^1.0.1:
Expand All @@ -745,7 +750,7 @@ levn@^0.4.1:

locate-path@^6.0.0:
version "6.0.0"
resolved ""
resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz"
integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
dependencies:
p-locate "^5.0.0"
Expand Down Expand Up @@ -777,14 +782,14 @@ micromatch@^4.0.4:

minimatch@^3.0.5:
version "3.0.8"
resolved ""
resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz"
integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==
dependencies:
brace-expansion "^1.1.7"

minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved ""
resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
Expand All @@ -801,7 +806,7 @@ natural-compare@^1.4.0:

once@^1.3.0:
version "1.4.0"
resolved ""
resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
dependencies:
wrappy "1"
Expand Down Expand Up @@ -851,7 +856,7 @@ path-is-absolute@^1.0.0:

path-key@^3.1.0:
version "3.1.1"
resolved ""
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==

path-type@^4.0.0:
Expand All @@ -875,9 +880,9 @@ prettier@^2.7.1:
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==

punycode@^2.1.0:
version "2.1.1"
resolved ""
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
version "2.3.0"
resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz"
integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==

queue-microtask@^1.2.2:
version "1.2.3"
Expand Down

0 comments on commit ac7ecec

Please sign in to comment.