Skip to content

Commit c10e858

Browse files
committed
bump pretteir
1 parent e0a4800 commit c10e858

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "tsc",
1010
"test": "jest",
1111
"lint": "eslint src/**/*.ts",
12+
"prettier-fix": "prettier --write \"**/*.{ts,tsx}\"",
1213
"release": "auto shipit",
1314
"release-canary": "auto canary"
1415
},
@@ -30,7 +31,7 @@
3031
"eslint": "6.8.0",
3132
"eslint-plugin-prettier": "3.1.2",
3233
"jest": "25.2.2",
33-
"prettier": "1.19.1",
34+
"prettier": "2.0.2",
3435
"react": "16.13.1",
3536
"react-native": "0.62.0",
3637
"react-test-renderer": "16.13.1",

src/useClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const listeners = new Set<Listener>()
66

77
function setString(content: string) {
88
Clipboard.setString(content)
9-
listeners.forEach(listener => listener(content))
9+
listeners.forEach((listener) => listener(content))
1010
}
1111

1212
export function useClipboard(): [string, (content: string) => void] {

src/useKeyboard.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ export function useKeyboard() {
1212
})
1313
const [keyboardHeight, setKeyboardHeight] = useState<number>(0)
1414

15-
const handleKeyboardWillShow: KeyboardEventListener = e => {
15+
const handleKeyboardWillShow: KeyboardEventListener = (e) => {
1616
setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
1717
}
18-
const handleKeyboardDidShow: KeyboardEventListener = e => {
18+
const handleKeyboardDidShow: KeyboardEventListener = (e) => {
1919
setShown(true)
2020
setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
2121
setKeyboardHeight(e.endCoordinates.height)
2222
}
23-
const handleKeyboardWillHide: KeyboardEventListener = e => {
23+
const handleKeyboardWillHide: KeyboardEventListener = (e) => {
2424
setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
2525
}
26-
const handleKeyboardDidHide: KeyboardEventListener = e => {
26+
const handleKeyboardDidHide: KeyboardEventListener = (e) => {
2727
setShown(false)
2828
setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
2929
setKeyboardHeight(0)

src/useLayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function useLayout() {
77
width: 0,
88
height: 0,
99
})
10-
const onLayout = useCallback(e => setLayout(e.nativeEvent.layout), [])
10+
const onLayout = useCallback((e) => setLayout(e.nativeEvent.layout), [])
1111

1212
return {
1313
onLayout,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6076,10 +6076,10 @@ [email protected]:
60766076
resolved "https://registry.npmjs.org/prettier/-/prettier-1.17.0.tgz#53b303676eed22cc14a9f0cec09b477b3026c008"
60776077
integrity sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw==
60786078

6079-
prettier@1.19.1:
6080-
version "1.19.1"
6081-
resolved "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
6082-
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
6079+
prettier@2.0.2:
6080+
version "2.0.2"
6081+
resolved "https://registry.npmjs.org/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
6082+
integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==
60836083

60846084
pretty-format@^24.7.0, pretty-format@^24.9.0:
60856085
version "24.9.0"

0 commit comments

Comments
 (0)