Skip to content

Add JS/TS configuration #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,15 @@ IDEA must also be manually configured for imports : `Preferences/Settings > Edit
Then go to `Preferences/Settings > Editor > General > Auto import` and check "Optimize imports on the fly" for Java:

![image](https://user-images.githubusercontent.com/50145663/135304815-0b51f1da-16d4-4fc7-a278-a13067e78d7c.png)

For Javascript (Typescript)

Setup imports to sort correctly:
![Intellij typescript](intellij/intellij-typescript-imports.png)

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).
Once installed set the files as such:
![Intellij javascript prettier](intellij/intellij-javascript-prettier.png)

Then to make sure prettier is run correctly, modify the on save actions:
![Intellij javascript onsave](intellij/intellij-javscript-actionsonsave.png)
Binary file added intellij/intellij-javascript-prettier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added intellij/intellij-javscript-actionsonsave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added intellij/intellij-typescript-imports.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.