Ich benutze ESLint in einem Projekt und möchte auch Facebook-Flow verwenden, aber ich bekomme Warnungen von ESLint auf Flow-Typ-Annotationen.ESLint mit Arbnb config und Facebook zusammen fließen
Ich habe .flowconfig und .eslintrc im Projektstamm.
.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
}
}
Was soll ich tun, es funktioniert? Gibt es eine Möglichkeit, den Watch-Task zusammen mit dem Webpack auszuführen?