From cf421f4ae56afae5836180fb28b2d0fc10babd19 Mon Sep 17 00:00:00 2001 From: Vladimir Metnev Date: Wed, 23 Aug 2017 18:37:46 +0300 Subject: [PATCH] feat(.eslintrc.json): add flow plugin for eslnit add flow plugin for eslnit --- .eslintrc.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 73894b65..0b161e94 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,12 @@ { "extends": [ + "plugin:flowtype/recommended", "plugin:react/recommended", "plugin:jsx-a11y/recommended", "standard" ], "parser": "babel-eslint", - "plugins": ["react", "babel", "jsx-a11y"], + "plugins": ["react", "babel", "jsx-a11y", "flowtype"], "parserOptions": { "ecmaFeatures": { "jsx": true, @@ -27,5 +28,10 @@ "i18n": true, "Raven": true, "ga": true + }, + "settings": { + "flowtype": { + "onlyFilesWithFlowAnnotation": false + } } }