From 22eabf28d5a3492b226b8f45d72d7ce5dc44eda5 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sun, 2 Aug 2020 19:43:06 +0200 Subject: [PATCH] Update eslint rules Changed rules to fix conflicts with flow --- .eslintrc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index c36f040..9459c1c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,6 +14,7 @@ module.exports = { }, rules: { 'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}], + 'react/static-property-placement': [2, 'static public field'], 'flowtype/define-flow-type': 1, 'flowtype/no-mixed': 2, 'flowtype/no-primitive-constructor-types': 2, @@ -38,4 +39,8 @@ module.exports = { onlyFilesWithFlowAnnotation: false, }, }, + globals: { + fetch: false, + Headers: false, + }, };