Skip to content

Commit 27311b8

Browse files
author
Akos Kitta
committed
chore: update prettier config
narrow the `resources` folder constraint in the .gitignore Signed-off-by: Akos Kitta <[email protected]>
1 parent 95bd2cf commit 27311b8

File tree

5 files changed

+43
-9
lines changed

5 files changed

+43
-9
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
node_modules/
22
lib/
33
downloads/
4-
resources/
4+
arduino-ide-extension/src/node/resources
55
arduino-ide-extension/Examples/
66
src-gen/
77
gen-webpack.config.js

.prettierignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
lib
2+
dist
3+
plugins
4+
src-gen
5+
i18n
6+
gen-webpack*
7+
.browser_modules
8+
arduino-ide-extension/src/node/resources
9+
cli-protocol
10+
*color-theme.json
11+
arduino-icons.json
12+
.github

.prettierrc

-7
This file was deleted.

.prettierrc.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"printWidth": 80,
6+
"endOfLine": "auto",
7+
"overrides": [
8+
{
9+
"files": "*.json",
10+
"options": {
11+
"tabWidth": 2
12+
}
13+
},
14+
{
15+
"files": "*.css",
16+
"options": {
17+
"tabWidth": 4,
18+
"singleQuote": false
19+
}
20+
},
21+
{
22+
"files": "*.html",
23+
"options": {
24+
"tabWidth": 4
25+
}
26+
}
27+
]
28+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"i18n:pull": "node ./scripts/i18n/transifex-pull.js ./i18n/",
5353
"themes:pull": "node ./scripts/themes/theme-tokens-pull.js",
5454
"themes:generate": "node ./scripts/themes/theme-generator.js",
55-
"compose-changelog": "yarn --cwd ./arduino-ide-extension compose-changelog"
55+
"compose-changelog": "yarn --cwd ./arduino-ide-extension compose-changelog",
56+
"format": "prettier --write ."
5657
},
5758
"lint-staged": {
5859
"./arduino-ide-extension/**/*.{ts,tsx}": [

0 commit comments

Comments
 (0)