Skip to content

Commit edb02ea

Browse files
author
Steven Vancoillie
committed
chore: add prettier checks to linting
1 parent bc2df4b commit edb02ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
"live": "examples/node/player.js"
1212
},
1313
"scripts": {
14-
"lint": "eslint --ext '.ts,.js' lib/",
14+
"lint": "yarn eslint && yarn prettier:check",
1515
"test": "jest --coverage",
1616
"verify": "yarn lint && yarn test",
1717
"build": "yarn build:esm && yarn build:cjs && yarn build:es5 && yarn build:bundle",
1818
"build:esm": "tsc -p tsconfig.json",
1919
"build:cjs": "tsc -p tsconfig.cjs.json",
2020
"build:es5": "tsc -p tsconfig.es5.json",
2121
"build:bundle": "webpack",
22+
"eslint": "eslint --ext '.ts,.js' lib/",
23+
"prettier:check": "prettier --check 'lib/**/*.{ts,js}'",
24+
"prettier:fix": "prettier --write 'lib/**/*.{ts,js}' --fix --loglevel silent",
2225
"rtsp": "rtsp-ws-server/start.sh",
2326
"dev": "webpack --mode development --watch",
2427
"examples": "webpack --mode development && http-server examples/browser",

0 commit comments

Comments
 (0)