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({ ...@@ -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)
} }
......
...@@ -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(() => {
......
...@@ -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(
......
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: {
......
...@@ -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 => {
......
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: {
......
...@@ -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: {
......
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: {
......
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: {
......
...@@ -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',
......
...@@ -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: {
......
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: {
......
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: {
......
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: {
......
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: {
......
...@@ -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(
......
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: {
......
...@@ -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 => {
......
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: {
......
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: {
......
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 {
......
...@@ -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: {
......
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: {
......
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