-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.yaml
30 lines (30 loc) · 1.6 KB
/
.prettierrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#To use this configuration, please install first cosmiconfig (npm install cosmiconfig)
#Then, in webstorm, change properties of this file, and in file you want reformat, tap ctrl + shift + alt + p
#Options to configure : https://prettier.io/docs/en/options.html (API override)
#https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Virgules_finales
#final commas in arrays, objects, functions
trailingComma: all
#tabulation space
tabWidth: 3
#max width of one line, if over, all elements of line will be break into multiple lines
printWidth: 300
#Print semicolons at the ends of statements.
semi: true
#Use single quotes instead of double quotes (variables)
singleQuote: true
#Print spaces between brackets in object literals.
bracketSpacing: false
#Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
#bracketSameLine: false
#Whether or not to indent the code inside <script> and <style> tags in Vue files. Some people (like the creator of Vue)
#don’t indent to save an indentation level, but this might break code folding in your editor
#For vue project, put false.
vueIndentScriptAndStyle: false
#https://developpaper.com/solution-to-delete-%E2%90%8Deslint-prettier-prettier-error/
'endOfLine': 'auto'
#Prettier commande globale formattage de tous les fichiers du projet
#Lancer les commandes suivantes avec un powershell en admin et en se mettant dans le repertoire du projet en cours
# Set-ExecutionPolicy -ExecutionPolicy Unrestricted
# prettier --write .
arrowParens: always
proseWrap: never