chore: update prettier config

narrow the `resources` folder constraint in
the .gitignore

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
Akos Kitta 2023-08-24 13:47:27 +02:00 committed by Akos Kitta
parent 7f660d76a8
commit 5939b65511
4 changed files with 40 additions and 8 deletions

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
node_modules/
lib/
downloads/
resources/
arduino-ide-extension/src/node/resources
arduino-ide-extension/Examples/
src-gen/
gen-webpack.config.js

11
.prettierignore Normal file
View File

@ -0,0 +1,11 @@
lib
dist
plugins
src-gen
i18n
gen-webpack*
.browser_modules
arduino-ide-extension/src/node/resources
cli-protocol
*color-theme.json
arduino-icons.json

View File

@ -1,7 +0,0 @@
{
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"endOfLine": "auto"
}

28
.prettierrc.json Normal file
View File

@ -0,0 +1,28 @@
{
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"endOfLine": "auto",
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
},
{
"files": "*.css",
"options": {
"tabWidth": 4,
"singleQuote": false
}
},
{
"files": "*.html",
"options": {
"tabWidth": 4
}
}
]
}