Skip to content

Commit c4371b9

Browse files
committed
Implement prettier (manual changes)
1 parent 8652dc9 commit c4371b9

File tree

5 files changed

+75
-47
lines changed

5 files changed

+75
-47
lines changed

.github/workflows/build-deploy.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
- name: Install dependencies 🌐
2727
run: pnpm install --frozen-lockfile
2828

29+
- name: Lint
30+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
31+
run: pnpm run pretty:check
32+
2933
- name: Build 🛠
3034
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
3135
run: pnpm run build

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docs/devices/*.md
2+
pnpm-lock.yaml

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 150,
6+
"bracketSpacing": false,
7+
"endOfLine": "lf",
8+
"tabWidth": 4
9+
}

package.json

+50-47
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,51 @@
11
{
2-
"name": "vp",
3-
"version": "1.0.0",
4-
"description": "",
5-
"private": true,
6-
"scripts": {
7-
"dev:devices": "cross-env NODE_OPTIONS=--max_old_space_size=8000 vuepress dev docs",
8-
"dev": "cross-env EXCLUDE_DEVICES=yes vuepress dev docs",
9-
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8000 vuepress build docs",
10-
"docgen": "ts-node docgen",
11-
"download-missing-device-images": "ts-node docgen/missing_device_images download",
12-
"move-missing-device-images": "ts-node docgen/missing_device_images move",
13-
"prepare-missing-device-images": "ts-node docgen/missing_device_images prepare",
14-
"test": "ts-node docgen/tests"
15-
},
16-
"author": "",
17-
"license": "ISC",
18-
"dependencies": {
19-
"@quasar/extras": "1.16.12",
20-
"core-js": "3.37.1",
21-
"quasar": "2.16.6"
22-
},
23-
"devDependencies": {
24-
"@vuepress/bundler-webpack": "2.0.0-rc.14",
25-
"@vuepress/client": "2.0.0-rc.14",
26-
"@vuepress/plugin-docsearch": "2.0.0-rc.40",
27-
"@vuepress/plugin-google-analytics": "2.0.0-rc.37",
28-
"@vuepress/plugin-register-components": "2.0.0-rc.37",
29-
"@vuepress/plugin-sitemap": "2.0.0-rc.40",
30-
"@vuepress/theme-default": "2.0.0-rc.40",
31-
"async-g-i-s": "1.5.3",
32-
"cross-env": "7.0.3",
33-
"easyimage": "3.1.1",
34-
"glob": "11.0.0",
35-
"image-size": "1.1.1",
36-
"pug": "3.0.3",
37-
"pug-plain-loader": "1.1.0",
38-
"sass": "1.77.8",
39-
"sass-loader": "15.0.0",
40-
"throat": "6.0.2",
41-
"ts-node": "10.9.2",
42-
"typescript": "5.5.4",
43-
"vue": "3.4.34",
44-
"vuepress": "2.0.0-rc.14",
45-
"webpack": "5.93.0",
46-
"zigbee-herdsman-converters": "19.62.0"
47-
}
48-
}
2+
"name": "vp",
3+
"version": "1.0.0",
4+
"description": "",
5+
"private": true,
6+
"scripts": {
7+
"dev:devices": "cross-env NODE_OPTIONS=--max_old_space_size=8000 vuepress dev docs",
8+
"dev": "cross-env EXCLUDE_DEVICES=yes vuepress dev docs",
9+
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8000 vuepress build docs",
10+
"docgen": "ts-node docgen",
11+
"download-missing-device-images": "ts-node docgen/missing_device_images download",
12+
"move-missing-device-images": "ts-node docgen/missing_device_images move",
13+
"prepare-missing-device-images": "ts-node docgen/missing_device_images prepare",
14+
"pretty:write": "prettier --write .",
15+
"pretty:check": "prettier --check .",
16+
"test": "ts-node docgen/tests"
17+
},
18+
"author": "",
19+
"license": "ISC",
20+
"dependencies": {
21+
"@quasar/extras": "1.16.12",
22+
"core-js": "3.37.1",
23+
"quasar": "2.16.6"
24+
},
25+
"devDependencies": {
26+
"@vuepress/bundler-webpack": "2.0.0-rc.14",
27+
"@vuepress/client": "2.0.0-rc.14",
28+
"@vuepress/plugin-docsearch": "2.0.0-rc.40",
29+
"@vuepress/plugin-google-analytics": "2.0.0-rc.37",
30+
"@vuepress/plugin-register-components": "2.0.0-rc.37",
31+
"@vuepress/plugin-sitemap": "2.0.0-rc.40",
32+
"@vuepress/theme-default": "2.0.0-rc.40",
33+
"async-g-i-s": "1.5.3",
34+
"cross-env": "7.0.3",
35+
"easyimage": "3.1.1",
36+
"glob": "11.0.0",
37+
"image-size": "1.1.1",
38+
"prettier": "3.3.3",
39+
"pug": "3.0.3",
40+
"pug-plain-loader": "1.1.0",
41+
"sass": "1.77.8",
42+
"sass-loader": "15.0.0",
43+
"throat": "6.0.2",
44+
"ts-node": "10.9.2",
45+
"typescript": "5.5.4",
46+
"vue": "3.4.34",
47+
"vuepress": "2.0.0-rc.14",
48+
"webpack": "5.93.0",
49+
"zigbee-herdsman-converters": "19.62.0"
50+
}
51+
}

pnpm-lock.yaml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)