Browse Source

Update eslint rules

Changed rules to fix conflicts with flow
Arnaud Vergnet 3 years 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
   },
14
   },
15
   rules: {
15
   rules: {
16
     'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
16
     'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
17
+    'react/static-property-placement': [2, 'static public field'],
17
     'flowtype/define-flow-type': 1,
18
     'flowtype/define-flow-type': 1,
18
     'flowtype/no-mixed': 2,
19
     'flowtype/no-mixed': 2,
19
     'flowtype/no-primitive-constructor-types': 2,
20
     'flowtype/no-primitive-constructor-types': 2,
38
       onlyFilesWithFlowAnnotation: false,
39
       onlyFilesWithFlowAnnotation: false,
39
     },
40
     },
40
   },
41
   },
42
+  globals: {
43
+    fetch: false,
44
+    Headers: false,
45
+  },
41
 };
46
 };

Loading…
Cancel
Save