Integrate Flow typing

This commit is contained in:
Victor Zhou
2019-04-08 11:53:56 -04:00
parent 635bf9ce8e
commit e62c37d91d
9 changed files with 91 additions and 22 deletions

View File

@@ -8,9 +8,10 @@
"build": "yarn run clean && gatsby build",
"deploy": "yarn run clean && gatsby build --prefix-paths && gh-pages -d public",
"clean": "rimraf .cache public",
"flow": "flow",
"lint:js": "eslint --cache --ext .js,.jsx --ignore-pattern public .",
"lint:scss": "stylelint \"src/**/*.scss\"",
"lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\"",
"lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\" \"yarn flow\"",
"test": "jest --config ./tests/jest-config.js",
"test:coverage": "jest --coverage --config ./tests/jest-config.js",
"test:watch": "jest --watch --config ./tests/jest-config.js"
@@ -44,6 +45,7 @@
"gatsby-link": "^2.0.16",
"gatsby-plugin-catch-links": "^2.0.13",
"gatsby-plugin-feed": "^2.1.0",
"gatsby-plugin-flow": "^1.0.4",
"gatsby-plugin-google-gtag": "^1.0.16",
"gatsby-plugin-manifest": "^2.0.26",
"gatsby-plugin-netlify": "^2.0.13",
@@ -78,34 +80,36 @@
"react-helmet": "^5.2.0"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "7.0.0",
"@babel/core": "7.0.0",
"@babel/plugin-proposal-class-properties": "7.0.0",
"@babel/plugin-proposal-optional-chaining": "7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.0",
"@babel/preset-env": "7.0.0",
"@babel/preset-react": "7.0.0",
"@babel/core": "7.0.0",
"autoprefixer": "9.5.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"identity-obj-proxy": "3.0.0",
"react-test-renderer": "16.8.6",
"jest": "23.6.0",
"jest-cli": "23.6.0",
"rimraf": "2.6.3",
"browserslist": "4.5.4",
"concurrently": "4.1.0",
"stylelint": "9.10.1",
"stylelint-scss": "3.5.4",
"stylelint-config-recommended-scss": "3.2.0",
"eslint": "5.16.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-jest": "22.4.1",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"eslint-watch": "5.0.1",
"babel-eslint": "10.0.1",
"flow-bin": "^0.96.0",
"gh-pages": "2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-cli": "23.6.0",
"lost": "8.3.1",
"postcss-pxtorem": "4.0.1",
"autoprefixer": "9.5.1",
"browserslist": "4.5.4"
"react-test-renderer": "16.8.6",
"rimraf": "2.6.3",
"stylelint": "9.10.1",
"stylelint-config-recommended-scss": "3.2.0",
"stylelint-scss": "3.5.4"
}
}