Skip to content

Commit

Permalink
Add prettier format configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrsn committed Sep 30, 2020
1 parent 3188508 commit d905ba0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80
}
8 changes: 7 additions & 1 deletion package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build": "webpack",
"build-docs": "rm -rf docs; npm run build; jsdoc -c ./jsdoc.conf.js; cp dist/canvas-datagrid.* docs/; cp -r tutorials/* images docs/",
"format": "prettier lib/**/*.js --write",
"test": "npm run build; karma start",
"watch": "webpack --watch"
},
Expand Down Expand Up @@ -64,11 +65,12 @@
"karma-mocha": "^2.0.1",
"marked": "^0.3.6",
"mocha": "^3.5.3",
"prettier": "^2.1.2",
"should": "^11.2.1",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"is-printable-key-event": "1.0.0"
}
}
}

0 comments on commit d905ba0

Please sign in to comment.