-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk run prettier on codebase (#643)
* Mass format * Ignore commit in git blame
- Loading branch information
Showing
49 changed files
with
550 additions
and
389 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Prettier bulk format | ||
1a2f103016036a9fc99c37f252abc765c2256964 |
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
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
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,3 @@ | ||
export async function handler(): string { | ||
return ( | ||
<> | ||
name: {"Hello World"} | ||
</> | ||
); | ||
return <>name: {"Hello World"}</>; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
packages/cli/test/config-esbuildconfig-invalid/esbuild-config.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 +1 @@ | ||
throw new Error("Bad esbuild configuration"); | ||
throw new Error("Bad esbuild configuration"); |
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,6 +1,6 @@ | ||
{ | ||
"name": "config-esbuildconfig-invalid", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.js" | ||
"name": "config-esbuildconfig-invalid", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.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
2 changes: 1 addition & 1 deletion
2
packages/cli/test/config-esbuildconfig-non-plugins/esbuild-config.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,4 +1,4 @@ | ||
console.log("Esbuild config loaded"); | ||
module.exports = { | ||
dummy: true | ||
dummy: true, | ||
}; |
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,6 +1,6 @@ | ||
{ | ||
"name": "config-esbuildconfig-non-plugins", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.js" | ||
"name": "config-esbuildconfig-non-plugins", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.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,6 +1,6 @@ | ||
{ | ||
"name": "config-esbuildconfig-not-found", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "file-that-does-not-exist" | ||
"name": "config-esbuildconfig-not-found", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "file-that-does-not-exist" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/cli/test/config-esbuildconfig-not-set/esbuild-config.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,2 @@ | ||
console.log("Esbuild config loaded"); | ||
module.exports = {}; | ||
module.exports = {}; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "config-esbuildconfig-not-set", | ||
"stage": "prod", | ||
"region": "us-west-2" | ||
"name": "config-esbuildconfig-not-set", | ||
"stage": "prod", | ||
"region": "us-west-2" | ||
} |
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,2 @@ | ||
console.log("Esbuild config loaded"); | ||
module.exports = {}; | ||
module.exports = {}; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "config-esbuildconfig", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.js" | ||
"name": "config-esbuildconfig", | ||
"stage": "prod", | ||
"region": "us-west-2", | ||
"esbuildConfig": "esbuild-config.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 |
---|---|---|
|
@@ -7,5 +7,5 @@ module.exports = { | |
tsconfigPath: path.resolve(__dirname, "tsconfig.json"), | ||
force: true, | ||
}), | ||
] | ||
], | ||
}; |
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
7 changes: 4 additions & 3 deletions
7
packages/cli/test/nodejs-handler-relative-path/nodejs-handler-relative-path/lambda.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import React from 'react'; | ||
import ReactDOMServer from 'react-dom/server'; | ||
import React from "react"; | ||
import ReactDOMServer from "react-dom/server"; | ||
|
||
function User(props: Event) { | ||
return ( | ||
<> | ||
name: {props.name} | ||
</> | ||
) | ||
return <>name: {props.name}</>; | ||
} | ||
export async function handler(event: Event){ | ||
const { name } = event; | ||
export async function handler(event: Event) { | ||
const { name } = event; | ||
const text = ReactDOMServer.renderToStaticMarkup(<User name={name} />); | ||
|
||
return { | ||
text | ||
} | ||
text, | ||
}; | ||
} |
Oops, something went wrong.