feat: Configure Prettier for code formatting and VS Code integration
This commit is contained in:
parent
546721ed14
commit
3029c9be25
3 changed files with 31 additions and 0 deletions
8
.prettierignore
Normal file
8
.prettierignore
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Template engine — contengono i placeholder {{...}}: NON formattare mai.
|
||||||
|
templates/
|
||||||
|
|
||||||
|
# Contenuto di proprietà dell'agente / generato (di norma in repo separati,
|
||||||
|
# elencato qui per sicurezza se apri un genoma nello stesso workspace).
|
||||||
|
wiki/
|
||||||
|
genomes/
|
||||||
|
raw/
|
||||||
5
.prettierrc
Normal file
5
.prettierrc
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"printWidth": 100,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"proseWrap": "preserve"
|
||||||
|
}
|
||||||
18
.vscode/settings.json
vendored
Normal file
18
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"prettier.requireConfig": true,
|
||||||
|
|
||||||
|
"files.associations": {
|
||||||
|
"templates/**/*.md": "plaintext"
|
||||||
|
},
|
||||||
|
|
||||||
|
"[markdown]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue