Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
d65070ed
Commit
d65070ed
authored
7 years ago
by
Joe Haddad
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use prop-types package (#2029)
parent
33a97001
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
packages/react-scripts/fixtures/kitchensink/.template.dependencies.json
+1
-0
...-scripts/fixtures/kitchensink/.template.dependencies.json
packages/react-scripts/fixtures/kitchensink/src/App.js
+2
-1
packages/react-scripts/fixtures/kitchensink/src/App.js
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
+2
-1
...scripts/fixtures/kitchensink/src/features/env/NodePath.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
+2
-1
...res/kitchensink/src/features/syntax/ArrayDestructuring.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
+2
-1
...s/fixtures/kitchensink/src/features/syntax/ArraySpread.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
+2
-1
...ts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
+2
-1
...xtures/kitchensink/src/features/syntax/ClassProperties.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
+2
-1
...res/kitchensink/src/features/syntax/ComputedProperties.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
+2
-1
...es/kitchensink/src/features/syntax/CustomInterpolation.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
+2
-1
...ures/kitchensink/src/features/syntax/DefaultParameters.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
+2
-1
.../kitchensink/src/features/syntax/DestructuringAndAwait.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
+2
-1
...ts/fixtures/kitchensink/src/features/syntax/Generators.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js
+2
-1
...es/kitchensink/src/features/syntax/ObjectDestructuring.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js
+2
-1
.../fixtures/kitchensink/src/features/syntax/ObjectSpread.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js
+2
-1
...ipts/fixtures/kitchensink/src/features/syntax/Promises.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
+2
-1
...ixtures/kitchensink/src/features/syntax/RestAndDefault.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
+2
-1
...ixtures/kitchensink/src/features/syntax/RestParameters.js
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
+2
-1
.../kitchensink/src/features/syntax/TemplateInterpolation.js
with
35 additions
and
17 deletions
+35
-17
packages/react-scripts/fixtures/kitchensink/.template.dependencies.json
+
1
-
0
View file @
d65070ed
...
...
@@ -6,6 +6,7 @@
"chai"
:
"3.5.0"
,
"jsdom"
:
"9.8.3"
,
"mocha"
:
"3.2.0"
,
"prop-types"
:
"15.5.6"
,
"test-integrity"
:
"1.0.0"
}
}
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/App.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
,
createElement
}
from
'
react
'
;
import
React
,
{
Component
,
createElement
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
class
BuiltEmitter
extends
Component
{
static
propTypes
=
{
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
load
from
'
absoluteLoad
'
;
export
default
class
extends
Component
{
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
()
{
return
[[
1
,
'
1
'
],
[
2
,
'
2
'
],
[
3
,
'
3
'
],
[
4
,
'
4
'
]];
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
(
users
)
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
async
function
load
()
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
export
default
class
extends
Component
{
static
propTypes
=
{
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
(
prefix
)
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
const
styled
=
([
style
])
=>
style
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
(
id
=
0
)
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
async
function
load
()
{
return
{
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
*
load
(
limit
)
{
let
i
=
1
;
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
()
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
(
baseUser
)
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
()
{
return
Promise
.
resolve
([
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
({
id
,
...
rest
}
=
{
id
:
0
,
user
:
{
id
:
42
,
name
:
'
42
'
}
})
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
({
id
=
0
,
...
rest
})
{
return
[
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
+
2
-
1
View file @
d65070ed
...
...
@@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
import
React
,
{
Component
,
PropTypes
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
function
load
(
name
)
{
return
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment