Skip to content

Commit

Permalink
Set up prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed May 10, 2018
1 parent eef357f commit cf55cb4
Show file tree
Hide file tree
Showing 4 changed files with 2,878 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
@@ -0,0 +1,2 @@
dist/
*.html
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -5,19 +5,18 @@
"main": "src/reactive-elements.js",
"scripts": {
"test": "npm run build && ./node_modules/.bin/karma start",
"prettier-check":
"prettier '{src,demo,test}/**/*' '*.md' '*.js' 'package.json' --list-different",
"prettier-write":
"prettier '{src,demo,test}/**/*' '*.md' '*.js' 'package.json' --write",
"build": "./node_modules/.bin/webpack && ./node_modules/.bin/webpack -p"
},
"homepage": "https://github.com/PixelsCommander/ReactiveElements",
"repository": {
"type": "git",
"url": "https://github.com/PixelsCommander/ReactiveElements.git"
},
"keywords": [
"react",
"web-components",
"custom elements",
"reactjs"
],
"keywords": ["react", "web-components", "custom elements", "reactjs"],
"author": {
"name": "Denis Radin aka PixelsCommander",
"email": "denis.radin@gmail.com",
Expand Down Expand Up @@ -78,6 +77,7 @@
"karma-jasmine": "^1.1.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.0",
"prettier": "^1.12.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"webpack": "^1.13.1"
Expand Down
6 changes: 6 additions & 0 deletions prettier.config.js
@@ -0,0 +1,6 @@
module.exports = {
trailingComma: 'es5',
semi: true,
singleQuote: true,
proseWrap: 'always',
};

0 comments on commit cf55cb4

Please sign in to comment.