-
-
Notifications
You must be signed in to change notification settings - Fork 638
Upgrade Shakapacker from 9.0.0 to 9.1.0 #1921
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
Changes from 12 commits
a289bba
0ec6a71
237d56e
51f779f
c59ea77
b4c4cc3
1f1030e
dee2edf
e3366cb
895bea8
7210588
42d8f98
83faebc
4260503
f0a1b0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #!/usr/bin/env bash | ||
| # Lint and auto-fix JS/TS files with ESLint | ||
| set -euo pipefail | ||
|
|
||
| CONTEXT="${1:-staged}" | ||
| files="$(bin/lefthook/get-changed-files "$CONTEXT" '\.(js|jsx|ts|tsx)$')" | ||
|
|
||
| if [ -z "$files" ]; then | ||
| echo "✅ No JS/TS files to lint with ESLint" | ||
| exit 0 | ||
| fi | ||
|
|
||
| if [ "$CONTEXT" = "all-changed" ]; then | ||
| echo "🔍 ESLint on all changed files:" | ||
| else | ||
| echo "🔍 ESLint on $CONTEXT files:" | ||
| fi | ||
| printf " %s\n" $files | ||
|
|
||
| # Run ESLint with auto-fix | ||
| yarn run eslint $files --report-unused-disable-directives --fix | ||
|
|
||
| # Re-stage files if running on staged or all-changed context | ||
| if [ "$CONTEXT" = "staged" ] || [ "$CONTEXT" = "all-changed" ]; then | ||
| echo $files | xargs -r git add | ||
|
||
| echo "✅ Re-staged fixed files" | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3657,13 +3657,14 @@ [email protected]: | |
| resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" | ||
| integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== | ||
|
|
||
| shakapacker@8.0.0: | ||
| version "8.0.0" | ||
| resolved "https://registry.yarnpkg.com/shakapacker/-/shakapacker-8.0.0.tgz#f29537c19078af7318758c92e7a1bca4cee96bdd" | ||
| integrity sha512-HCdpITzIKXzGEyUWQhKzPbpwwOsgTamaPH+0kXdhM59VQxZ3NWnT5cL3DlJdAT3sGsWCJskEl3eMkQlnh9DjhA== | ||
| shakapacker@9.1.0: | ||
| version "9.1.0" | ||
| resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36" | ||
| integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw== | ||
| dependencies: | ||
| js-yaml "^4.1.0" | ||
| path-complete-extname "^1.0.0" | ||
| webpack-merge "^5.8.0" | ||
|
|
||
| shallow-clone@^3.0.0: | ||
| version "3.0.1" | ||
|
|
@@ -4050,9 +4051,9 @@ webpack-dev-server@4: | |
| webpack-dev-middleware "^5.3.4" | ||
| ws "^8.13.0" | ||
|
|
||
| webpack-merge@5, webpack-merge@^5.7.3: | ||
| webpack-merge@5, webpack-merge@^5.7.3, webpack-merge@^5.8.0: | ||
| version "5.10.0" | ||
| resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" | ||
| resolved "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" | ||
| integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== | ||
| dependencies: | ||
| clone-deep "^4.0.1" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.