Skip to content

Commit

Permalink
build: bump Next.js version (#162)
Browse files Browse the repository at this point in the history
* buils: bump next js version

* chore: add packageManager

* chore: return vitest

* style: fix formatter

* chore: fix next config

* chore: fix tsconfig

* chore: bump node version to 22

* style: fix eslint config

* chore: add missing config

* fix: typing
  • Loading branch information
pure-js authored Nov 8, 2024
1 parent d1e4abb commit d396b8f
Show file tree
Hide file tree
Showing 27 changed files with 9,406 additions and 13,385 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ env:
es2021: true
node: true
extends:
- love
# - love
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
- plugin:react/jsx-runtime
- prettier
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- react
- prettier
- '@typescript-eslint'
rules:
'@typescript-eslint/explicit-function-return-type': 'off'
root: true
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -18,5 +18,5 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
- name: Run Formatter
run: pnpm run format:check
2 changes: 1 addition & 1 deletion .github/workflows/deploy-nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [22]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down
1 change: 0 additions & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ importOrder:
'^@/constants/(.*)$',
'^@/components/(.*)$',
'^@/(.*)$',
'^app/(.*)$',
'^@/assets/(.*)$',
'^[./]',
]
Expand Down
11 changes: 0 additions & 11 deletions app/manufacturers/[id]/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion 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/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
11 changes: 6 additions & 5 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// @ts-check
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
import { PHASE_DEVELOPMENT_SERVER } from 'next/constants';

module.exports = async (phase) => {
import type { NextConfig } from 'next';

export default async (phase: string) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
const nextConfig: NextConfig = {
reactStrictMode: true,
output: 'export',
};
Expand All @@ -16,7 +17,7 @@ module.exports = async (phase) => {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
const nextConfig: NextConfig = {
reactStrictMode: true,
output: 'export',
basePath: '/auto-manufacturers', // GitHub pages
Expand Down
Loading

0 comments on commit d396b8f

Please sign in to comment.