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

Commit 3e9ff8e

Browse files
rubennortefacebook-github-bot
authored andcommitted
Fixed license, Flow and lint issues in draft-js
Summary: Apply the proper license and fix Flow and lint. Reviewed By: mjesun Differential Revision: D7790038 fbshipit-source-id: b3dd8b582c1311c926e92122fb17766e616b4100
1 parent ee2e9c8 commit 3e9ff8e

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ website/
66
gulpfile.js
77
scripts/module-map.js
88
scripts/jest/preprocessor.js
9+
scripts/jest/hasteImpl.js
910
examples/draft-0-10-0/universal/static/bundle.js
1011
examples/draft-0-9-1/universal/static/bundle.js

meta/bundle-size-stats/Draft.js.json

+1-1
Large diffs are not rendered by default.

meta/bundle-size-stats/Draft.min.js.json

+1-1
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"eslint-plugin-react": "^7.3.0",
6060
"eslint-plugin-relay": "^0.0.8",
6161
"fbjs-scripts": "^0.8.0",
62-
"flow-bin": "^0.64.0",
62+
"flow-bin": "^0.70.0",
6363
"gulp": "^3.9.0",
6464
"gulp-babel": "^6.1.2",
6565
"gulp-browserify-thin": "^0.1.5",

scripts/jest/hasteImpl.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
2-
* Copyright (c) 2014-present, Facebook, Inc.
2+
* Copyright (c) 2013-present, Facebook, Inc.
3+
* All rights reserved.
34
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
68
*
79
* @flow
810
*/

src/.flowconfig

+10-1
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,24 @@
1616

1717
[options]
1818
module.system=haste
19+
module.system.haste.use_name_reducers=true
20+
# keep the following in sync with server/haste/hasteImpl.js
21+
# get basename
22+
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
23+
# strip .js or .js.flow suffix
24+
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
25+
module.system.haste.paths.whitelist=<PROJECT_ROOT>/.*
26+
module.system.haste.paths.whitelist=.*/node_modules/fbjs/lib/.*
1927
module.system.haste.paths.blacklist=.*/__tests__/.*
2028
module.system.haste.paths.blacklist=.*/react/node_modules/.*
2129
module.system.haste.paths.blacklist=.*/react-dom/node_modules/.*
2230
module.system.haste.paths.blacklist=.*/fbjs/node_modules/.*
2331
module.system.haste.paths.blacklist=.*/node_modules/invariant/.*
32+
2433
esproposal.class_static_fields=enable
2534
suppress_type=$FlowIssue
2635
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-8]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\).*\n
2736
module.name_mapper='ReactDOM' -> 'react-dom'
2837

2938
[version]
30-
^0.64.0
39+
^0.70.0

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2199,9 +2199,9 @@ flat-cache@^1.2.1:
21992199
graceful-fs "^4.1.2"
22002200
write "^0.2.1"
22012201

2202-
flow-bin@^0.64.0:
2203-
version "0.64.0"
2204-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.64.0.tgz#ddd3fb3b183ab1ab35a5d5dec9caf5ebbcded167"
2202+
flow-bin@^0.70.0:
2203+
version "0.70.0"
2204+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.70.0.tgz#080ae83a997f2b4ddb3dc2649bf13336825292b5"
22052205

22062206
flush-write-stream@^1.0.0:
22072207
version "1.0.2"

0 commit comments

Comments
 (0)