-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix snapshots broken by prettier (also fix .prettierignore) (#48586)
### What? Fix snapshots that were no longer fulfilling the original purpose after prettier had its way. The `.prettierignore` also had the old `target/` directory (prior to the `Cargo.toml` move in #48198) so running `pnpm prettier-fix` formatted files in the `target/` directory
- Loading branch information
1 parent
a06fef0
commit 4354eda
Showing
15 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,39 @@ | ||
node_modules | ||
**/.next/** | ||
**/_next/** | ||
**/dist/** | ||
# Build artifacts | ||
.next/ | ||
.turbo/ | ||
_next/ | ||
__tmp__/ | ||
dist/ | ||
node_modules/ | ||
target/ | ||
compiled/ | ||
|
||
lerna.json | ||
test-timings.json | ||
pnpm-lock.yaml | ||
|
||
packages/next/src/bundles/webpack/packages/*.runtime.js | ||
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js | ||
packages/next/src/compiled/** | ||
packages/react-refresh-utils/**/*.js | ||
packages/react-refresh-utils/**/*.d.ts | ||
packages/react-dev-overlay/lib/** | ||
**/__tmp__/** | ||
lerna.json | ||
|
||
.github/actions/next-stats-action/.work | ||
.github/actions/issue-validator/index.mjs | ||
.github/actions/issue-labeler/lib/index.js | ||
packages/next-swc/crates/next-core/js/src/compiled/**/* | ||
|
||
packages/next-swc/crates/**/tests/**/output* | ||
packages/next-swc/target/**/* | ||
packages/next-swc/crates/core/tests/loader/issue-32553/input.js | ||
packages/next-swc/native/**/* | ||
packages/next-codemod/transforms/__testfixtures__/**/* | ||
packages/next-codemod/transforms/__tests__/**/* | ||
|
||
packages/next-codemod/transforms/__testfixtures__/** | ||
packages/next-codemod/transforms/__tests__/** | ||
packages/next-codemod/**/*.js | ||
packages/next-codemod/**/*.d.ts | ||
|
||
packages/next-env/**/*.d.ts | ||
test-timings.json | ||
|
||
test/**/out/** | ||
test/development/basic/hmr/components/parse-error.js | ||
|
||
bench/nested-deps/pages/**/* | ||
bench/nested-deps/components/**/* | ||
pnpm-lock.yaml | ||
|
||
**/convex/_generated/** |
4 changes: 3 additions & 1 deletion
4
...ext-swc/crates/core/tests/errors/react-server-components/client-graph/use-client/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import 'react' | ||
;('use client') | ||
|
||
// prettier-ignore | ||
'use client' | ||
|
||
export default function () { | ||
return null | ||
|
1 change: 0 additions & 1 deletion
1
...xt-swc/crates/core/tests/errors/react-server-components/client-graph/use-client/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import 'react'; | ||
'use client'; | ||
export default function() { | ||
return null; | ||
} |
10 changes: 5 additions & 5 deletions
10
...wc/crates/core/tests/errors/react-server-components/client-graph/use-client/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
x NEXT_RSC_ERR_CLIENT_DIRECTIVE_PAREN | ||
,-[input.js:1:1] | ||
1 | import 'react' | ||
2 | ;('use client') | ||
: ^^^^^^^^^^^^^^ | ||
x NEXT_RSC_ERR_CLIENT_DIRECTIVE | ||
,-[input.js:3:1] | ||
3 | // prettier-ignore | ||
4 | 'use client' | ||
: ^^^^^^^^^^^^ | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,7 @@ const foo = async () => { | |
|
||
const bar = async () => { | ||
const x = 1 | ||
;('use server') | ||
|
||
// prettier-ignore | ||
'use server' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
x The "use server" directive must be at the top of the function body. | ||
,-[input.js:9:1] | ||
9 | // prettier-ignore | ||
10 | 'use server' | ||
: ^^^^^^^^^^^^ | ||
11 | } | ||
`---- |
4 changes: 3 additions & 1 deletion
4
packages/next-swc/crates/core/tests/errors/server-actions/9/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
import 'my-module' | ||
;('use server') | ||
|
||
// prettier-ignore | ||
'use server' |
1 change: 1 addition & 0 deletions
1
packages/next-swc/crates/core/tests/errors/server-actions/9/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import 'my-module'; | ||
// prettier-ignore | ||
'use server'; |
10 changes: 5 additions & 5 deletions
10
packages/next-swc/crates/core/tests/errors/server-actions/9/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
x The "use server" directive must be at the top of the file, and cannot be wrapped in parentheses. | ||
,-[input.js:1:1] | ||
1 | import 'my-module' | ||
2 | ;('use server') | ||
: ^^^^^^^^^^^^^^ | ||
x The "use server" directive must be at the top of the file. | ||
,-[input.js:3:1] | ||
3 | // prettier-ignore | ||
4 | 'use server' | ||
: ^^^^^^^^^^^^ | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/next-swc/crates/core/tests/loader/issue-32553/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
;<div>children</div> | ||
;('<>hello</>') | ||
<div>children</div>; '<>hello</>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters