私はプロジェクトでESLintを使用していますが、Facebookのフローも使用したいと思いますが、フロータイプの注釈でESLintからの警告が表示されています。Arbnb設定とFacebookフローを併用したESLint
プロジェクトルートに.flowconfigと.eslintrcがあります。
.eslintrc:
// When you write javascript you should follow these soft rules and best practices
// https://github.com/airbnb/javascript
// This is a link to best practices and enforcer settings for eslint
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
// Use this file as a starting point for your project's .eslintrc.
{
"extends": "airbnb",
"plugins": [
"flow-vars"
],
"rules": {
"flow-vars/define-flow-type": 1,
"flow-vars/use-flow-type": 1
}
}
が、私はそれを動作させるために何をすべきか? Webpackを使用して監視タスクでフローを実行する方法はありますか?