
安装在package.json上
"babel-preset-flow": "^6.23.0",
"eslint-plugin-flowtype": "2.35.1",
"flow-bin": "^0.55.0",
"flow-typed": "2.1.5",
"standard-flow": "^1.0.0",
"babel-eslint": "8.0.0",
"eslint": "^4.7.1",
"eslint-plugin-flowtype": "2.35.1",错误:加载插件流类型失败--解析器:找不到模块‘eslint- plugin - load -解析器’ 错误:未能加载插件流类型--解析器:无法在Function.Module._resolveFilename (module.js:489:15)的Function.resolve (内部/module.js:18:19)找到模块‘eslint- plugin - load -解析器’
我的标准配置..。
"standard": {
"ignore": [
"/flow-type/**/*"
],
"env": [
"mocha"
],
"globals": [
"fetch"
],
"parser": "babel-eslint",
"extends": [
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
]
},即使我在控制台里跑..。
npx standard --fix | snazzy && npx flow
....
.../flow-typed/npm/sinon_vx.x.x.js
203:27 error '$Exports' is not defined
206:27 error '$Exports' is not defined
209:27 error '$Exports' is not defined
... // MORE ..发布于 2018-06-10 10:38:49
找不到模块“eslint-plugin- find解析器”
两个破折号一定是个错误。无论如何,应该使用babel-eslint作为解析器,使用eslint-plugin-flowtype作为插件之一。
是的,所有这些令人困惑的/babel/flowtype类型插件和信息可能会让人感到困惑。你可以检查他们所有的自述..。
或者,您可以查看最后配置这里,例如。
https://stackoverflow.com/questions/46345516
复制相似问题