mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
Summary: Release notes: none Updates the eslint whitelist, this is for `debug-fb-www` mainly. Pull Request resolved: https://github.com/facebook/prepack/pull/2529 Differential Revision: D9635575 Pulled By: trueadm fbshipit-source-id: 5d606500a2f2123c6a499113c9da02a0bf58a074
88 lines
1.8 KiB
JavaScript
88 lines
1.8 KiB
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
/* @flow */
|
|
|
|
// The irony :P
|
|
/* eslint-disable no-undef */
|
|
module.exports = {
|
|
env: {
|
|
commonjs: true,
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
"no-undef": "error",
|
|
"no-use-before-define": ["error", { variables: false, functions: false }],
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
globals: {
|
|
// FB
|
|
Env: true,
|
|
Bootloader: true,
|
|
JSResource: true,
|
|
babelHelpers: true,
|
|
regeneratorRuntime: true,
|
|
asset: true,
|
|
cx: true,
|
|
cssVar: true,
|
|
csx: true,
|
|
errorDesc: true,
|
|
errorHelpCenterID: true,
|
|
errorSummary: true,
|
|
gkx: true,
|
|
glyph: true,
|
|
ifRequired: true,
|
|
ix: true,
|
|
fbglyph: true,
|
|
fbt: true,
|
|
requireWeak: true,
|
|
xuiglyph: true,
|
|
__NUM_MODULES__: true,
|
|
DebuggerInternal: true,
|
|
define: true,
|
|
// React
|
|
React: true,
|
|
__REACT_DEVTOOLS_GLOBAL_HOOK__: true,
|
|
// Normal
|
|
Exception: true,
|
|
Error: true,
|
|
setImmediate: true,
|
|
clearImmediate: true,
|
|
DataView: true,
|
|
ArrayBuffer: true,
|
|
Uint8Array: true,
|
|
Float32Array: true,
|
|
Int32Array: true,
|
|
// ES 6
|
|
Promise: true,
|
|
Map: true,
|
|
Set: true,
|
|
Proxy: true,
|
|
Symbol: true,
|
|
WeakMap: true,
|
|
WeakSet: true,
|
|
Reflect: true,
|
|
// Vendor specific
|
|
MSApp: true,
|
|
ActiveXObject: true,
|
|
// CommonJS / Node
|
|
process: true,
|
|
// Prepack
|
|
__optimize: true,
|
|
__optimizeReactComponentTree: true,
|
|
__abstract: true,
|
|
__makeFinal: true,
|
|
},
|
|
};
|