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.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ yarn-error.log*
public/atom.xml
public/rss.json
public/rss.xml
*.tsbuildinfo
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.
13 changes: 10 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import nextMDX from "@next/mdx"
import rehypeSlug from "rehype-slug"

const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
// Plugins are referenced by package name so that the options stay
// serializable, which Turbopack (the default bundler since Next.js 16)
// requires.
remarkPlugins: [],
rehypePlugins: [rehypeSlug],
rehypePlugins: ["rehype-slug"],
// If you use `MDXProvider`, uncomment the following line.
providerImportSource: "@mdx-js/react",
format: 'mdx',
Expand All @@ -16,7 +18,12 @@ 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: [
{ protocol: "https", hostname: "raw.githubusercontent.com" },
{ protocol: "https", hostname: "numpy.org" },
{ protocol: "https", hostname: "dask.org" },
{ protocol: "https", hostname: "chainer.org" },
],
},
output: 'export'
}
Expand Down
Loading
Loading