Unverified Commit b2624012 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Remove old eslint-ignores from unstable_ prefix (#10740)

parent 3bfb6501
......@@ -118,9 +118,7 @@ export default async function({
let curRenderOpts = {}
let renderMethod = renderToHTML
// eslint-disable-next-line camelcase
const renderedDuringBuild = getStaticProps => {
// eslint-disable-next-line camelcase
return !buildExport && getStaticProps && !isDynamicRoute(path)
}
......
......@@ -10,7 +10,6 @@ export default class UrlPropChange extends React.Component {
}
}
// eslint-disable-next-line camelcase
componentDidUpdate(prevProps) {
if (prevProps.url !== this.props.url) {
this.setState(() => {
......
......@@ -2,7 +2,6 @@ import Link from 'next/link'
import fs from 'fs'
import findUp from 'find-up'
// eslint-disable-next-line camelcase
export async function getServerSideProps() {
const text = fs
.readFileSync(
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ query }) {
return {
props: {
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ params }) {
if (params.post === 'post-10') {
await new Promise(resolve => {
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getServerSideProps() {
return {
props: {
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ params }) {
return {
props: {
......
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getServerSideProps() {
return {
props: {
......
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getServerSideProps() {
return {
props: {
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ params, query }) {
return {
world: 'world',
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ params, query }) {
return {
props: {
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getServerSideProps({ query }) {
return {
props: {
......
import React from 'react'
// eslint-disable-next-line camelcase
export async function getStaticPaths() {
return { paths: [{ params: { slug: 'hello' } }], fallback: true }
}
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
import React from 'react'
// eslint-disable-next-line camelcase
export async function getStaticPaths() {
return { paths: [{ foo: 'bad', baz: 'herro' }], fallback: true }
}
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
import React from 'react'
// eslint-disable-next-line camelcase
export async function unstable_getStaticParams() {
return ['/blog/post-1']
}
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
......@@ -2,7 +2,6 @@ import Link from 'next/link'
import fs from 'fs'
import findUp from 'find-up'
// eslint-disable-next-line camelcase
export async function getStaticProps() {
const text = fs
.readFileSync(
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getStaticPaths() {
return {
paths: [
......@@ -12,7 +11,6 @@ export async function getStaticPaths() {
}
}
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getStaticPaths() {
return {
paths: [
......@@ -19,7 +18,6 @@ export async function getStaticPaths() {
let counter = 0
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
if (params.post === 'post-10') {
await new Promise(resolve => {
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getStaticProps() {
return {
props: {
......
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getStaticProps() {
return {
props: {
......
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getStaticProps() {
// throw new Error('oops from getStaticProps')
return {
......
......@@ -2,7 +2,6 @@ import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
import React from 'react'
import Link from 'next/link'
// eslint-disable-next-line camelcase
export async function getStaticPaths() {
return { paths: [], fallback: true }
}
// eslint-disable-next-line camelcase
export async function getStaticProps({ params }) {
return {
props: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment