feat: run flow at root level

This commit is contained in:
Julien Fontanet 2017-12-27 10:49:31 +01:00
parent bea7b90eb2
commit a505ded8a1
4 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,7 @@
[lints]
[options]
experimental.const_params=true
include_warnings=true
module.use_strict=true
unsafe.enable_getters_and_setters=true
[strict]

View File

@ -9,6 +9,7 @@
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1",
"exec-promise": "^0.7.0",
"flow-bin": "^0.61.0",
"husky": "^0.14.3",
"jest": "^22.0.4",
"lint-staged": "^6.0.0",
@ -52,7 +53,7 @@
"precommit": "lint-staged",
"prepare": "scripts/run-script prepare",
"pretest": "eslint --ignore-path .gitignore .",
"test": "jest"
"test": "jest && flow status"
},
"workspaces": [
"packages/*"

View File

@ -55,7 +55,6 @@
"@babel/preset-flow": "^7.0.0-beta.36",
"babel-plugin-lodash": "^3.3.2",
"cross-env": "^5.1.3",
"flow-bin": "^0.61.0",
"rimraf": "^2.6.2"
},
"scripts": {

View File

@ -43,6 +43,7 @@ require('exec-promise')(() =>
'eslint-plugin-node',
'eslint-plugin-promise',
'eslint-plugin-standard',
'flow-bin',
'ghooks',
'husky',
'jest',
@ -70,6 +71,7 @@ require('exec-promise')(() =>
),
unlink(`${dir}/.editorconfig`),
unlink(`${dir}/.eslintrc.js`),
unlink(`${dir}/.flowconfig`),
unlink(`${dir}/.gitignore`),
unlink(`${dir}/.jshintrc`),
unlink(`${dir}/.travis.yml`),