Skip to content

Commit 78cbdc4

Browse files
author
isotnikov
committed
add prettier support
1 parent 8ebb6aa commit 78cbdc4

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist
2+
3+
*.css
4+
*.html
5+
*.md
6+
*.yml
7+
*.min.js
8+
package.json
9+
package-lock.json

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 80,
3+
"trailingComma": "es5",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": false,
7+
"arrowParens": "avoid"
8+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"gulp-uglify": "^3.0.2",
2626
"gulp-useref": "^4.0.1",
2727
"http-proxy-middleware": "^1.0.6",
28+
"prettier": "2.8.8",
2829
"rollup": "^2.32.1",
2930
"rollup-plugin-terser": "^6.1.0",
3031
"standard-version": "^8.0.2",
@@ -51,7 +52,9 @@
5152
"docs:dev": "vuepress dev docs",
5253
"docs:build": "vuepress build docs",
5354
"commit": "git-cz",
54-
"release": "standard-version"
55+
"release": "standard-version",
56+
"prettier": "npx prettier --check .",
57+
"prettier:fix": "npx prettier -w ."
5558
},
5659
"files": [
5760
"dist"

0 commit comments

Comments
 (0)