Integrate Prettier and add a configuration file with instructions for safe usage.
Integrate Prettier and add a configuration file with instructions for safe usage. Anything else ;-)
Please use Markdown for guides, that should look something like that :
PRETTIER GUIDE
To use Prettier correctly (if you don't know what Prettier is, it's a module that formats your code correctly, like this, so everyone has the same formatting style as you), you need to follow these steps:
-
Install the Prettier module (on VSCODE, you need to press "CTRL"/"CMD" + "SHIFT" + "X" and search for "Prettier - Code formatter")
-
Install the ESLint module (on VSCODE, you need to press "CTRL"/"CMD" + "SHIFT" + "X" and search for "ESLint")
-
Configure Prettier. To do this, press "CTRL"/"CMD" + "SHIFT" + "P" and type "Open User Settings JSON". Be careful, choose JSON!
After that, paste these lines into the JSON file:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.requireConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.organizeImports": "always"
}
}
If you want 😁
Good job! But indeed as @xav35000 said the guide should be revised
Mais pourquoi une majuscule alors que le reste de la config (perso) est en minuscule ?
Thats my bad i was confused with the json syntax for a bit. Sorry !
I will change the extension and after it's done 👍
Done !
Done !
Nice job! We will wait until the ongoing refactoring is complete to merge this PR and format all files, to avoid creating conflicts. Thanks