Skip to content

Commit e9d0bde

Browse files
Add JS/TS configuration
1 parent 862d914 commit e9d0bde

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,15 @@ IDEA must also be manually configured for imports : `Preferences/Settings > Edit
171171
Then go to `Preferences/Settings > Editor > General > Auto import` and check "Optimize imports on the fly" for Java:
172172

173173
![image](https://user-images.githubusercontent.com/50145663/135304815-0b51f1da-16d4-4fc7-a278-a13067e78d7c.png)
174+
175+
For Javascript (Typescript)
176+
177+
Setup imports to sort correctly:
178+
![Intellij typescript](intellij/intellij-typescript-imports.png)
179+
180+
We use a tool called **Prettier**. In order to ensure it functions correctly, install the [Prettier plugin](https://www.jetbrains.com/help/idea/prettier.html).
181+
Once installed set the files as such:
182+
![Intellij javascript prettier](intellij/intellij-javascript-prettier.png)
183+
184+
Then to make sure prettier is run correctly, modify the on save actions:
185+
![Intellij javascript onsave](intellij/intellij-javscript-actionsonsave.png)
105 KB
Loading
144 KB
Loading
333 KB
Loading

0 commit comments

Comments
 (0)