1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Play with flow type checker

This commit is contained in:
squidfunk 2017-02-19 17:19:30 +01:00
parent 3e50c3394a
commit af4db15a27
8 changed files with 11375 additions and 2 deletions

View File

@ -55,6 +55,11 @@ export default (gulp, config) => {
file.eslint.results[0].filePath =
path.relative(process.cwd(), file.path)
// const contents = `/* @flow */\n\n${file.contents.toString()}`
// const flowJsdoc = require("flow-jsdoc")
// const annotatedContents = flowJsdoc(contents)
// console.log(annotatedContents)
/* Push file to next stage */
this.push(file)
done()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,8 @@
"babel-eslint": "^7.1.1",
"babel-loader": "^6.3.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-syntax-flow": "^6.18.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-react-jsx": "^6.8.0",
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "^6.22.0",
@ -50,6 +52,7 @@
"ecstatic": "^2.1.0",
"eslint": "^3.14.0",
"fastclick": "^1.0.6",
"flow-jsdoc": "^0.2.2",
"git-hooks": "^1.1.7",
"gulp": "^3.9.1",
"gulp-changed": "^2.0.0",

View File

@ -5,6 +5,8 @@
"plugins": [
["transform-react-jsx", {
"pragma": "JSX.createElement"
}]
}],
"syntax-flow",
"transform-flow-strip-types"
]
}