Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b2624012
Unverified
Commit
b2624012
authored
Feb 28, 2020
by
JJ Kasper
Committed by
GitHub
Feb 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old eslint-ignores from unstable_ prefix (#10740)
parent
3bfb6501
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
0 additions
and
30 deletions
+0
-30
worker.js
packages/next/export/worker.js
+0
-2
url-prop-change.js
...ntegration/client-navigation/pages/nav/url-prop-change.js
+0
-1
index.js
test/integration/getserversideprops/pages/another/index.js
+0
-1
[comment].js
...gration/getserversideprops/pages/blog/[post]/[comment].js
+0
-1
index.js
...integration/getserversideprops/pages/blog/[post]/index.js
+0
-1
index.js
test/integration/getserversideprops/pages/blog/index.js
+0
-1
[...path].js
...ntegration/getserversideprops/pages/catchall/[...path].js
+0
-1
default-revalidate.js
...ntegration/getserversideprops/pages/default-revalidate.js
+0
-1
index.js
test/integration/getserversideprops/pages/index.js
+0
-1
invalid-keys.js
test/integration/getserversideprops/pages/invalid-keys.js
+0
-1
something.js
test/integration/getserversideprops/pages/something.js
+0
-1
profile.js
...tegration/getserversideprops/pages/user/[user]/profile.js
+0
-1
[...slug].js
...tion/prerender-invalid-catchall-params/pages/[...slug].js
+0
-2
[post].js
...integration/prerender-invalid-paths/pages/[foo]/[post].js
+0
-2
[post].js
test/integration/prerender-legacy/pages/blog/[post].js
+0
-2
index.js
test/integration/prerender/pages/another/index.js
+0
-1
[comment].js
test/integration/prerender/pages/blog/[post]/[comment].js
+0
-2
index.js
test/integration/prerender/pages/blog/[post]/index.js
+0
-2
index.js
test/integration/prerender/pages/blog/index.js
+0
-1
default-revalidate.js
test/integration/prerender/pages/default-revalidate.js
+0
-1
index.js
test/integration/prerender/pages/index.js
+0
-1
something.js
test/integration/prerender/pages/something.js
+0
-1
profile.js
test/integration/prerender/pages/user/[user]/profile.js
+0
-2
No files found.
packages/next/export/worker.js
View file @
b2624012
...
@@ -118,9 +118,7 @@ export default async function({
...
@@ -118,9 +118,7 @@ export default async function({
let
curRenderOpts
=
{}
let
curRenderOpts
=
{}
let
renderMethod
=
renderToHTML
let
renderMethod
=
renderToHTML
// eslint-disable-next-line camelcase
const
renderedDuringBuild
=
getStaticProps
=>
{
const
renderedDuringBuild
=
getStaticProps
=>
{
// eslint-disable-next-line camelcase
return
!
buildExport
&&
getStaticProps
&&
!
isDynamicRoute
(
path
)
return
!
buildExport
&&
getStaticProps
&&
!
isDynamicRoute
(
path
)
}
}
...
...
test/integration/client-navigation/pages/nav/url-prop-change.js
View file @
b2624012
...
@@ -10,7 +10,6 @@ export default class UrlPropChange extends React.Component {
...
@@ -10,7 +10,6 @@ export default class UrlPropChange extends React.Component {
}
}
}
}
// eslint-disable-next-line camelcase
componentDidUpdate
(
prevProps
)
{
componentDidUpdate
(
prevProps
)
{
if
(
prevProps
.
url
!==
this
.
props
.
url
)
{
if
(
prevProps
.
url
!==
this
.
props
.
url
)
{
this
.
setState
(()
=>
{
this
.
setState
(()
=>
{
...
...
test/integration/getserversideprops/pages/another/index.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import Link from 'next/link'
...
@@ -2,7 +2,6 @@ import Link from 'next/link'
import
fs
from
'fs'
import
fs
from
'fs'
import
findUp
from
'find-up'
import
findUp
from
'find-up'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
()
{
export
async
function
getServerSideProps
()
{
const
text
=
fs
const
text
=
fs
.
readFileSync
(
.
readFileSync
(
...
...
test/integration/getserversideprops/pages/blog/[post]/[comment].js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
query
})
{
export
async
function
getServerSideProps
({
query
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/blog/[post]/index.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
params
})
{
export
async
function
getServerSideProps
({
params
})
{
if
(
params
.
post
===
'post-10'
)
{
if
(
params
.
post
===
'post-10'
)
{
await
new
Promise
(
resolve
=>
{
await
new
Promise
(
resolve
=>
{
...
...
test/integration/getserversideprops/pages/blog/index.js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
()
{
export
async
function
getServerSideProps
()
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/catchall/[...path].js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
params
})
{
export
async
function
getServerSideProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/default-revalidate.js
View file @
b2624012
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
()
{
export
async
function
getServerSideProps
()
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/index.js
View file @
b2624012
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
()
{
export
async
function
getServerSideProps
()
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/invalid-keys.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
params
,
query
})
{
export
async
function
getServerSideProps
({
params
,
query
})
{
return
{
return
{
world
:
'world'
,
world
:
'world'
,
...
...
test/integration/getserversideprops/pages/something.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
params
,
query
})
{
export
async
function
getServerSideProps
({
params
,
query
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/getserversideprops/pages/user/[user]/profile.js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getServerSideProps
({
query
})
{
export
async
function
getServerSideProps
({
query
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender-invalid-catchall-params/pages/[...slug].js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
// eslint-disable-next-line camelcase
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
paths
:
[{
params
:
{
slug
:
'hello'
}
}],
fallback
:
true
}
return
{
paths
:
[{
params
:
{
slug
:
'hello'
}
}],
fallback
:
true
}
}
}
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender-invalid-paths/pages/[foo]/[post].js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
// eslint-disable-next-line camelcase
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
paths
:
[{
foo
:
'bad'
,
baz
:
'herro'
}],
fallback
:
true
}
return
{
paths
:
[{
foo
:
'bad'
,
baz
:
'herro'
}],
fallback
:
true
}
}
}
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender-legacy/pages/blog/[post].js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
// eslint-disable-next-line camelcase
export
async
function
unstable_getStaticParams
()
{
export
async
function
unstable_getStaticParams
()
{
return
[
'/blog/post-1'
]
return
[
'/blog/post-1'
]
}
}
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender/pages/another/index.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import Link from 'next/link'
...
@@ -2,7 +2,6 @@ import Link from 'next/link'
import
fs
from
'fs'
import
fs
from
'fs'
import
findUp
from
'find-up'
import
findUp
from
'find-up'
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
()
{
export
async
function
getStaticProps
()
{
const
text
=
fs
const
text
=
fs
.
readFileSync
(
.
readFileSync
(
...
...
test/integration/prerender/pages/blog/[post]/[comment].js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
return
{
paths
:
[
paths
:
[
...
@@ -12,7 +11,6 @@ export async function getStaticPaths() {
...
@@ -12,7 +11,6 @@ export async function getStaticPaths() {
}
}
}
}
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender/pages/blog/[post]/index.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
return
{
paths
:
[
paths
:
[
...
@@ -19,7 +18,6 @@ export async function getStaticPaths() {
...
@@ -19,7 +18,6 @@ export async function getStaticPaths() {
let
counter
=
0
let
counter
=
0
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
if
(
params
.
post
===
'post-10'
)
{
if
(
params
.
post
===
'post-10'
)
{
await
new
Promise
(
resolve
=>
{
await
new
Promise
(
resolve
=>
{
...
...
test/integration/prerender/pages/blog/index.js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
()
{
export
async
function
getStaticProps
()
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender/pages/default-revalidate.js
View file @
b2624012
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
()
{
export
async
function
getStaticProps
()
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender/pages/index.js
View file @
b2624012
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
()
{
export
async
function
getStaticProps
()
{
// throw new Error('oops from getStaticProps')
// throw new Error('oops from getStaticProps')
return
{
return
{
...
...
test/integration/prerender/pages/something.js
View file @
b2624012
...
@@ -2,7 +2,6 @@ import React from 'react'
...
@@ -2,7 +2,6 @@ import React from 'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
{
useRouter
}
from
'next/router'
import
{
useRouter
}
from
'next/router'
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
test/integration/prerender/pages/user/[user]/profile.js
View file @
b2624012
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
// eslint-disable-next-line camelcase
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
paths
:
[],
fallback
:
true
}
return
{
paths
:
[],
fallback
:
true
}
}
}
// eslint-disable-next-line camelcase
export
async
function
getStaticProps
({
params
})
{
export
async
function
getStaticProps
({
params
})
{
return
{
return
{
props
:
{
props
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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