You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use the _defaults_ with the latest version of prettier on all of our Javascript and Typescript code.
4
+
5
+
- Language: Always prefer Typescript over Javascript and CoffeeScript
6
+
7
+
- Use the standard Javascript camelCase convention for variable names, unless there is a good reason otherwise. Good reasons include: variable names that are also used in PostgreSQL and interop with Python (lower case with underscores).
8
+
9
+
- React: Always prefer functional components over class components
10
+
11
+
- React: Use the style of https://react.dev/learn/typescript for React with Typescript. In particular, use
12
+
13
+
```ts
14
+
function MyButton({ title, disabled }:MyButtonProps) {
0 commit comments