Skip to content

Commit

Permalink
Add Prettier setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmacarthur committed May 17, 2019
1 parent cdd84e2 commit 57e3cad
Show file tree
Hide file tree
Showing 11 changed files with 334 additions and 69 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"node": true
},
"extends": [
"prettier",
"plugin:vue/essential",
"eslint:recommended"
],
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/vendor
267 changes: 264 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"serve": "NODE_ENV=development vue-cli-service serve",
"build": "NODE_ENV=production vue-cli-service build",
"lint": "vue-cli-service lint",
"lint:fix": "eslint ./src --fix"
"lint:fix": "eslint ./src --fix",
"precommit": "pretty-quick --staged",
"prettier": "prettier --write \"./src/**/*.js\""
},
"bugs": {
"url": "https://github.com/alexmacarthur/wp-vue/issues"
Expand All @@ -32,8 +34,12 @@
"@vue/cli-service": "^3.5.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.8.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-vue": "^5.0.0",
"husky": "^2.3.0",
"node-sass": "^4.11.0",
"prettier": "^1.17.1",
"pretty-quick": "^1.10.0",
"sass-loader": "^7.1.0",
"style-resources-loader": "^1.2.1",
"vue-cli-plugin-style-resources-loader": "^0.1.3",
Expand Down
Loading

0 comments on commit 57e3cad

Please sign in to comment.