Sto usando ESLint in un progetto e voglio usare anche il flusso di Facebook, ma ricevo avvertimenti da ESLint sulle annotazioni del tipo di flusso.ESLint con Arbnb config e Facebook Flow insieme
I .flowconfig e .eslintrc nella radice del progetto.
.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
}
}
cosa devo fare per farlo funzionare? C'è un modo per eseguire il flusso nel compito di sorveglianza insieme usando il webpack?