add husky and autolinting

This commit is contained in:
41666 2019-04-03 07:26:00 -05:00
parent e1bd5747b3
commit d050277730
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
5 changed files with 56 additions and 7 deletions

View file

@ -4,15 +4,19 @@
"main": "index.js",
"scripts": {
"lerna": "lerna",
"start": "lerna run start",
"start": "node packages/roleypoly-server/dist/index.js",
"dev": "babel-node packages/roleypoly-server/index.js",
"build": "lerna run build",
"flow:install": "flow-mono install-types",
"flow": "flow",
"remotedebug": "remotedebug_ios_webkit_adapter --port=9000 > /dev/null",
"test": "jest --color --coverage",
"lint": "run-p lint:*",
"lint:css": "stylelint 'packages/roleypoly-ui/**/*.js'",
"lint:js": "standard",
"rpcrepl": "babel-node packages/roleypoly-server/util/rpcrepl.js",
"dev:up": "docker-compose up -d"
"dev:up": "docker-compose up -d",
"precommit": "yarn lint && yarn test"
},
"private": true,
"workspaces": [
@ -43,6 +47,7 @@
"flow-bin": "^0.96.0",
"flow-mono-cli": "^1.5.0",
"flow-typed": "^2.5.1",
"husky": "^1.3.1",
"jest": "^24.7.0",
"jest-styled-components": "^6.3.1",
"lerna": "^3.13.1",
@ -66,6 +71,9 @@
"globals": [
"$Shape",
"$Call"
],
"ignore": [
"flow-typed/*"
]
}
}