Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Use strict-local in as many files as possible
Browse files Browse the repository at this point in the history
Summary: I looked for files that had zero "baddies" (i.e. any, Function, Object), tried making them strict, reverted if there were errors.

Reviewed By: gabelevi

Differential Revision: D7957942

fbshipit-source-id: 22664d1add5e0a69e1f14342602abdbeef1dfc40
  • Loading branch information
miorel authored and facebook-github-bot committed May 11, 2018
1 parent 0ecf9a6 commit 3798902
Show file tree
Hide file tree
Showing 71 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion src/component/base/DraftEditorPlaceholder.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/contents/DraftEditorTextNode.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/DraftEditorEditHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/commands/SecondaryClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/commands/keyCommandUndo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnBeforeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnCompositionStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnCopy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnCut.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnDragOver.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnDragStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/getFragmentFromSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/DOMDerivedSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/DraftOffsetKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/findAncestorOffsetKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/getDraftEditorSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/getRangeBoundingClientRect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/getRangeClientRects.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/getUpdatedSelectionState.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/selection/isSelectionAtLeafStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/KeyBindingUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/exploration/DraftTreeAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*
* This is unstable and not part of the public API and should not be used by
* production systems. This file may be update/removed without notice.
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/getDefaultKeyBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/getTextContentFromFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/isEventHandled.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/component/utils/isSoftNewlineEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/model/encoding/RawDraftContentState.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @emails oncall+ui_infra
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/model/encoding/createCharacterList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/model/entity/DraftEntityMutability.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/model/entity/DraftEntityType.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';
Expand Down
Loading

0 comments on commit 3798902

Please sign in to comment.