Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jan 23, 2025
1 parent c540471 commit 748c3b7
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 42 deletions.
2 changes: 1 addition & 1 deletion examples/example-app-router-playground/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// @ts-check

import createMDX from '@next/mdx';
import createNextIntlPlugin from 'next-intl/plugin';
import createBundleAnalyzer from '@next/bundle-analyzer';
import type {NextConfig} from 'next';

const withNextIntl = createNextIntlPlugin('./src/i18n/request.tsx');
const withMdx = createMDX({});
const withBundleAnalyzer = createBundleAnalyzer({
enabled: process.env.ANALYZE === 'true'
});

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configure `pageExtensions` to include markdown and MDX files
const nextConfig: NextConfig = {
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
trailingSlash: process.env.NEXT_PUBLIC_USE_CASE === 'trailing-slash',
basePath:
process.env.NEXT_PUBLIC_USE_CASE === 'base-path' ? '/base/path' : undefined
};

export default withNextIntl(withMdx(nextConfig));
export default withNextIntl(withMdx(withBundleAnalyzer(nextConfig)));
3 changes: 2 additions & 1 deletion examples/example-app-router-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@jest/globals": "^29.7.0",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/bundle-analyzer": "^15.1.6",
"@next/mdx": "^15.0.0-rc.1",
"@playwright/test": "^1.48.1",
"@storybook/nextjs": "^8.5.1",
Expand All @@ -38,7 +40,6 @@
"@types/react-dom": "^18.3.0",
"chokidar-cli": "3.0.0",
"css-loader": "^6.8.1",
"@eslint/eslintrc": "^3.1.0",
"eslint": "^9.11.1",
"eslint-config-next": "15.1.6",
"jest": "^29.7.0",
Expand Down
3 changes: 0 additions & 3 deletions examples/example-pages-router-legacy/eslint.config.mjs

This file was deleted.

4 changes: 1 addition & 3 deletions examples/example-pages-router-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"lint": "eslint src && prettier src --check",
"lint": "prettier src --check",
"build": "next build",
"start": "next start"
},
Expand All @@ -14,8 +14,6 @@
"use-intl": "^3.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"eslint": "^9.11.1",
"prettier": "^3.3.3"
},
"prettier": {
Expand Down
Loading

0 comments on commit 748c3b7

Please sign in to comment.