This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
forked from facebookarchive/draft-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: **Cleanup Examples code** I linted code in the `/examples` folder with ESLint config that ships with `create-react-app` and I found a few warnings. Changes made: - Removed unused variables, imports - Refactored switch statement to a simple if statement - Removed unnecessary escape in Regex Please let me know if you want me to squash commits or make changes 😄 Closes facebookarchive#1649 Differential Revision: D7085257 fbshipit-source-id: 3292462da3926377537e840dc45ca206a41a8a1b
- Loading branch information
1 parent
084bdb6
commit 67f3586
Showing
6 changed files
with
12 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
|
||
const { | ||
CompositeDecorator, | ||
ContentBlock, | ||
ContentState, | ||
Editor, | ||
EditorState, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
convertFromRaw, | ||
convertToRaw, | ||
CompositeDecorator, | ||
ContentState, | ||
Editor, | ||
EditorState, | ||
} = Draft; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ | |
const { | ||
convertToRaw, | ||
CompositeDecorator, | ||
ContentState, | ||
Editor, | ||
EditorState, | ||
RichUtils, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters