Browse Source

Update eslint rules

Changed rules to fix conflicts with flow
Arnaud Vergnet 1 year ago
parent
commit
22eabf28d5
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      .eslintrc.js

+ 5
- 0
.eslintrc.js View File

@@ -14,6 +14,7 @@ module.exports = {
14 14
   },
15 15
   rules: {
16 16
     'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
17
+    'react/static-property-placement': [2, 'static public field'],
17 18
     'flowtype/define-flow-type': 1,
18 19
     'flowtype/no-mixed': 2,
19 20
     'flowtype/no-primitive-constructor-types': 2,
@@ -38,4 +39,8 @@ module.exports = {
38 39
       onlyFilesWithFlowAnnotation: false,
39 40
     },
40 41
   },
42
+  globals: {
43
+    fetch: false,
44
+    Headers: false,
45
+  },
41 46
 };

Loading…
Cancel
Save