mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
* [React Native] Inline calls to FabricUIManager in shared code * Call global.nativeFabricUIManager directly as short term fix * Add flow types * Add nativeFabricUIManager global to eslint config * Adding eslint global to bundle validation script
34 lines
612 B
JavaScript
34 lines
612 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
env: {
|
|
commonjs: true,
|
|
browser: true,
|
|
},
|
|
globals: {
|
|
// ES6
|
|
Map: true,
|
|
Set: true,
|
|
Symbol: true,
|
|
Proxy: true,
|
|
WeakMap: true,
|
|
WeakSet: true,
|
|
// Vendor specific
|
|
MSApp: true,
|
|
__REACT_DEVTOOLS_GLOBAL_HOOK__: true,
|
|
// FB
|
|
__DEV__: true,
|
|
// Fabric. See https://github.com/facebook/react/pull/15490
|
|
// for more information
|
|
nativeFabricUIManager: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 5,
|
|
sourceType: 'script',
|
|
},
|
|
rules: {
|
|
'no-undef': 'error',
|
|
'no-shadow-restricted-names': 'error',
|
|
},
|
|
};
|