Update eslint rules
Changed rules to fix conflicts with flow
这个提交包含在:
父节点
c0777511a6
当前提交
22eabf28d5
共有 1 个文件被更改,包括 5 次插入 和 0 次删除
|
@ -14,6 +14,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
|
'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
|
||||||
|
'react/static-property-placement': [2, 'static public field'],
|
||||||
'flowtype/define-flow-type': 1,
|
'flowtype/define-flow-type': 1,
|
||||||
'flowtype/no-mixed': 2,
|
'flowtype/no-mixed': 2,
|
||||||
'flowtype/no-primitive-constructor-types': 2,
|
'flowtype/no-primitive-constructor-types': 2,
|
||||||
|
@ -38,4 +39,8 @@ module.exports = {
|
||||||
onlyFilesWithFlowAnnotation: false,
|
onlyFilesWithFlowAnnotation: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
globals: {
|
||||||
|
fetch: false,
|
||||||
|
Headers: false,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
正在加载…
在新工单中引用