Skip to content
Snippets Groups Projects
Unverified Commit 5f763dc1 authored by Ro3034's avatar Ro3034 Committed by GitHub
Browse files

Merge pull request #295 from ProgrammeVitam/vas_item_7021_add_prettier_formatting_code

[VAS] Item 7021 - Règles de formattage de code et documentation associée
parents 29d605cd daff8747
No related branches found
No related tags found
10 merge requests!51Merge mis a jour vitam-ui,!25Nouveau mis a jour Vitamui,!24Nouveau mis a jour Vitamui,!23Nouveau mis a jour Vitamui,!22WIP: nouveau mis a jour Vitamui,!21nouveau mis a jour Vitamui,!20nouveau mis à jour Vitamui,!19nouveau mis à jour Vitamui,!18New MAJ Vitamui,!16[VAS] BUG 7332 : Correction sur la position de la barre permettant de...
# Ignore artifacts:
.vscode
node_modules
target
# Ignore everything (to avoid formatting angular conf files...):
/*
# Except files in projects:
!/projects
# Ignore all given extensions files:
*.css
*.js
*.json
# Except json files in any assets folder
!**/assets/**/*.json
\ No newline at end of file
{
"printWidth": 140,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true,
"arrowParens": "always"
}
# Ignore artifacts:
.vscode
node_modules
target
# Ignore everything (to avoid formatting angular conf files...):
/*
# Except files in projects:
!/projects
# Ignore all given extensions files:
*.css
*.js
*.json
# Except json files in any assets folder
!**/assets/**/*.json
\ No newline at end of file
{
"printWidth": 140,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true,
"arrowParens": "always"
}
......@@ -52,3 +52,38 @@ You also need to update the `vitamui-icons.css` file. Open the `style.css` from
> Attention: Do not override the first part of the file (from line `1` to line `25`)
Please add each new icon to the icon category in the starter-kit project.
## Format front end code
# Recommended Extensions for Visual studio code :
- "ms-vscode.vscode-typescript-tslint-plugin" : for more information: // TsLinst, https://marketplace.visualstudio.com/items?itemName=ms-vscode.
- "esbenp.prettier-vscode" : for more information: // Code formater Prettier, https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
- "sibiraj-s.vscode-scss-formatter" : for more information: // SCSS Formatter, https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter
- "msjsdiag.debugger-for-chrome": for more information: // Debbuger for Chrome, https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome
- "firefox-devtools.vscode-firefox-debug" : for more information: // Debbuger for Firefox, https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug
# Visual studio code setting :
Bellow and example to manage code format for Visual studio code using settings.json file :
{
"editor.formatOnSave": true,
"[typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true,
"source.organizeImports": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
},
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment