Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig, globalIgnores } from 'eslint/config'
import nextVitals from 'eslint-config-next/core-web-vitals'

export default defineConfig([
...nextVitals,
globalIgnores([
'.next/**',
'out/**',
'build/**',
'public/**',
'next-env.d.ts',
]),
])
4 changes: 3 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/dev/types/routes.d.ts'
import './.next/dev/types/root-params.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
9 changes: 6 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import nextMDX from "@next/mdx"
import rehypeSlug from "rehype-slug"

const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [],
rehypePlugins: [rehypeSlug],
// Turbopack (the default bundler since Next.js 16) can only pass
// serializable options to loaders, so plugins are referenced by name.
rehypePlugins: ["rehype-slug"],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: "@mdx-js/react",
format: 'mdx',
Expand All @@ -16,7 +17,9 @@ const nextConfig = {
// Append the default value with md extensions
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
images: {
domains: ["raw.githubusercontent.com", "numpy.org", "dask.org", "chainer.org"],
remotePatterns: ["raw.githubusercontent.com", "numpy.org", "dask.org", "chainer.org"].map(
(hostname) => ({ protocol: "https", hostname })
),
},
output: 'export'
}
Expand Down
Loading
Loading