Closed kepet19 closed 3 years ago
Nice! now I can't get commits for formatting :)
whoa maybe you should add a git hooks before git commits :b
./node_modules/.bin/prettier --check App.js components
or npm run format:check
Neat!
Let's get the test app
Nice! now I can't get commits for formatting :)
whoa maybe you should add a git hooks before git commits :b
./node_modules/.bin/prettier --check App.js components
ornpm run format:check
True 🤣
Neat!
Let's get the test app
Nice! now I can't get commits for formatting :)
whoa maybe you should add a git hooks before git commits :b
./node_modules/.bin/prettier --check App.js components
ornpm run format:check
True rofl
I can't remember how to do it doe xD can you make that in a .git/config ?
Looking good!
Two questions though: Should we write
.js
after importing our own files, because right now we do it sometimes but not always? I saw that you added it in thegradient-button.js
but not in the other files.When importing, should we use curly brackets to be consistent, or only use them when importing as more than one? e.g.
import { LinearGradient } from "expo-linear-gradient"; import MaskedView from "@react-native-masked-view/masked-view"; import { StyleSheet, Text } from "react-native";
Curley brackets depend on the component. from react-native it is because it doesn't default export
I agree with the .js thing it should not be included :->
Looking good!
Two questions though: Should we write
.js
after importing our own files, because right now we do it sometimes but not always? I saw that you added it in thegradient-button.js
but not in the other files.When importing, should we use curly brackets to be consistent, or only use them when importing as more than one? e.g.
import { LinearGradient } from "expo-linear-gradient"; import MaskedView from "@react-native-masked-view/masked-view"; import { StyleSheet, Text } from "react-native";
But forgot to refractor the imports after I redid the exports on the components so in this case, It shouldn't have curly brackets on the gradient components
Looking good! Two questions though: Should we write
.js
after importing our own files, because right now we do it sometimes but not always? I saw that you added it in thegradient-button.js
but not in the other files. When importing, should we use curly brackets to be consistent, or only use them when importing as more than one? e.g.import { LinearGradient } from "expo-linear-gradient"; import MaskedView from "@react-native-masked-view/masked-view"; import { StyleSheet, Text } from "react-native";
Curley brackets depend on the component. from react-native it is because it doesn't default export
Huh, havde jeg ikke lige overvejet. TIL I guess
Looking good! Two questions though: Should we write
.js
after importing our own files, because right now we do it sometimes but not always? I saw that you added it in thegradient-button.js
but not in the other files. When importing, should we use curly brackets to be consistent, or only use them when importing as more than one? e.g.import { LinearGradient } from "expo-linear-gradient"; import MaskedView from "@react-native-masked-view/masked-view"; import { StyleSheet, Text } from "react-native";
Curley brackets depend on the component. from react-native it is because it doesn't default export
Huh, havde jeg ikke lige overvejet. TIL I guess
https://stackoverflow.com/questions/36795819/when-should-i-use-curly-braces-for-es6-import
Det er en kunst
Just to be sure we remove all .js from import right ?
Just to be sure we remove all .js from import right ?
Ye
Just to be sure we remove all .js from import right ?
Ye
where do we have that tho cant find any?
oh nvm
only 3 places tho :ez:
Ready for review.
Add
npm run format
for formatting the projectnpm run format:check
used in CI for checking if you formatted.Fix