Skip to content

Commit b624cd1

Browse files
committed
package: Add Prettier to lint scripts.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 53d7807 commit b624cd1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
"eslint-plugin-jsx-a11y": "^6.4.1",
3333
"eslint-plugin-react": "^7.21.5",
3434
"mocha": "^8.2.1",
35+
"prettier": "^2.2.1",
3536
"sinon": "^9.2.1"
3637
},
3738
"scripts": {
3839
"build": "babel --delete-dir-on-start -d lib/ src/",
3940
"prepare": "npm run build",
4041
"prepublish": "npm run build",
41-
"lint": "eslint .",
42-
"lint:fix": "eslint --fix .",
42+
"lint": "eslint . && prettier --loglevel=warn --check .",
43+
"lint:fix": "eslint --fix . && prettier --loglevel=warn --write .",
4344
"test": "npm run lint && npm run build && mocha test/*",
4445
"call": "node examples/interactive_call_endpoint.js"
4546
},

0 commit comments

Comments
 (0)