Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint upgrade to use hermes-eslint #25915

Merged
merged 11 commits into from
Dec 20, 2022
Prev Previous commit
Next Next commit
reduce globals
  • Loading branch information
kassens committed Dec 19, 2022
commit bb33602c10747d0c77f13c4b88803e46eb452d9f
73 changes: 1 addition & 72 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -433,81 +433,10 @@ module.exports = {
},

globals: {
__DEV__: true,
require: true,
requireDynamic: true,
requireLazy: true,
ReactComponent: false,
ReactClass: false,
ReactElement: false,
ReactPropsCheckType: false,
ReactPropsChainableTypeChecker: false,
ReactPropTypes: false,
SyntheticEvent: false,
SyntheticClipboardEvent: false,
SyntheticCompositionEvent: false,
SyntheticInputEvent: false,
SyntheticUIEvent: false,
SyntheticFocusEvent: false,
SyntheticKeyboardEvent: false,
SyntheticMouseEvent: false,
SyntheticDragEvent: false,
SyntheticWheelEvent: false,
SyntheticTouchEvent: false,
$Either: false,
$All: false,
$Tuple: false,
$Supertype: false,
$Subtype: false,
$Shape: false,
$Diff: false,
$Keys: false,
$Enum: false,
$Exports: false,
Class: false,
function: false,
Iterable: false,
$FlowIssue: false,
$FlowFixMe: false,
$FixMe: false,
Iterator: false,
IteratorResult: false,
$await: false,
ArrayBufferView: false,
FbtResult: false,
$jsx: false,
FBID: false,
AdAccountID: false,
UID: false,
ReactNode: false,
Fbt: false,
LRID: false,
UkiAccount: false,
UkiAdgroup: false,
UkiCampaign: false,
UkiCampaignGroup: false,
RTCConfiguration: false,
RTCIceServer: false,
RTCOfferOptions: false,
RTCStatsReport: false,
RTCStatsCallback: false,
RTCPeerConnection: false,
RTCPeerConnectionErrorCallback: false,
RTCSessionDescription: false,
RTCSessionDescriptionInit: false,
RTCSessionDescriptionCallback: false,
RTCIceCandidate: false,
RTCIceCandidateInit: false,
RTCPeerConnectionIceEvent: false,
RTCPeerConnectionIceEventInit: false,
RTCDataChannel: false,
RTCDataChannelInit: false,
RTCDataChannelEvent: false,
RTCDataChannelEventInit: false,

spyOnDev: 'readonly',
spyOnDevAndProd: 'readonly',
spyOnProd: 'readonly',
__DEV__: 'readonly',
__EXPERIMENTAL__: 'readonly',
__EXTENSION__: 'readonly',
__PROFILE__: 'readonly',