Skip to content

Commit

Permalink
Update prettier script
Browse files Browse the repository at this point in the history
  • Loading branch information
zslabs committed Jan 4, 2019
1 parent c428eca commit 6e937d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
@@ -0,0 +1,4 @@
static/
node_modules/
public/
.cache/
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -76,8 +76,7 @@
"build-serve": "yarn build && gatsby serve",
"develop": "yarn && yarn run icons && gatsby develop",
"test": "echo \"Error: no test specified\" && exit 1",
"prettier": "prettier-eslint --write '{,!(node_modules)/**/}*.{js,jsx}' && prettier-stylelint --write '{,!(node_modules)/**/}*.{css,scss}'",
"lint": "eslint '{,!(node_modules)/**/}*.{js,jsx}' && stylelint '{,!(node_modules)/**/}*.{css,scss}'"
"prettier": "prettier-eslint --write '**/*.{js,jsx}' && prettier-stylelint --write '**/*.{css,scss}'"
},
"prettier": {
"print-width": 80
Expand Down

0 comments on commit 6e937d7

Please sign in to comment.