Skip to content

Commit a32fcda

Browse files
committed
[fix] 2 Building bugs
1 parent d6ed36a commit a32fcda

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
18-
with:
19-
submodules: true
18+
19+
- name: Clone latest submodules
20+
run: git submodule update --init --recursive --remote
2021

2122
- name: Deploy to Vercel
2223
id: vercel-deployment

eslint.config.ts

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import cspellPlugin from '@cspell/eslint-plugin';
22
import eslint from '@eslint/js';
3-
// @ts-expect-error eslint-plugin-next doesn't come with TypeScript definitions
43
import nextPlugin from '@next/eslint-plugin-next';
54
import stylistic from '@stylistic/eslint-plugin';
65
import eslintConfigPrettier from 'eslint-config-prettier';
@@ -31,12 +30,7 @@ export default tsEslint.config(
3130
},
3231
{
3332
// config with just ignores is the replacement for `.eslintignore`
34-
ignores: [
35-
'**/node_modules/**',
36-
'**/public/**',
37-
'**/.next/**',
38-
'.github/scripts/**',
39-
],
33+
ignores: ['**/node_modules/**', '**/public/**', '**/.next/**', '.github/scripts/**'],
4034
},
4135

4236
// extends ...
@@ -53,22 +47,15 @@ export default tsEslint.config(
5347
warnOnUnsupportedTypeScriptVersion: false,
5448
},
5549
},
50+
// @ts-expect-error https://github.com/vercel/next.js/issues/81695
5651
rules: {
5752
// spellchecker
5853
'@cspell/spellchecker': [
5954
'warn',
6055
{
6156
cspell: {
6257
language: 'en',
63-
dictionaries: [
64-
'typescript',
65-
'node',
66-
'html',
67-
'css',
68-
'bash',
69-
'npm',
70-
'pnpm',
71-
],
58+
dictionaries: ['typescript', 'node', 'html', 'css', 'bash', 'npm', 'pnpm'],
7259
},
7360
},
7461
],
@@ -91,8 +78,7 @@ export default tsEslint.config(
9178
'error',
9279
{
9380
selector: "TSPropertySignature[key.name='children']",
94-
message:
95-
'Please use PropsWithChildren<T> instead of defining children manually',
81+
message: 'Please use PropsWithChildren<T> instead of defining children manually',
9682
},
9783
],
9884
'consistent-return': 'warn',
@@ -109,10 +95,7 @@ export default tsEslint.config(
10995
// React
11096
'react/no-unescaped-entities': 'off',
11197
'react/self-closing-comp': ['error', { component: true, html: true }],
112-
'react/jsx-curly-brace-presence': [
113-
'error',
114-
{ props: 'never', children: 'never' },
115-
],
98+
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],
11699
'react/jsx-no-target-blank': 'warn',
117100
'react/jsx-sort-props': [
118101
'error',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@babel/preset-react": "^7.27.1",
5050
"@cspell/eslint-plugin": "^9.2.0",
5151
"@eslint/js": "^9.34.0",
52+
"@next/eslint-plugin-next": "^15.5.0",
5253
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
5354
"@stylistic/eslint-plugin": "^5.2.3",
5455
"@types/eslint-config-prettier": "^6.11.3",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)