-
Notifications
You must be signed in to change notification settings - Fork 3
add: ciの追加 #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add: ciの追加 #8
Conversation
|
.eslintrc.json と eslint.config.js があるけど,これって両方必要? |
.eslintrc.json消し忘れです |
- package.jsonのtype: moduleを削除(CommonJS出力のため不要) - @eslint/jsをdevDependenciesに追加 - 古い.eslintrc.jsonを削除 - eslint.config.jsをCommonJS形式に変更
- docker compose buildの成功を確認 - コンテナが正常に起動しDiscordログインまで到達することを確認 - TokenInvalidエラーが出ることで、コード自体は正常に動作していることを検証
- docker compose logsではなく、upの出力を直接ファイルに保存 - set +eでエラーを一時的に無視し、終了コードを取得 - ログを表示してデバッグしやすくする - grepの結果で成功/失敗を明示的に判定
|
docker compose upを行い、コードが実行されるところまで確認するCIを追加しました |
|
TypeScript ESLint ,recommended よりも recommendedTypeChecked のほうが良いと思う。 |
- globalsパッケージをdevDependenciesに追加 - eslint.config.jsでglobals.nodeを使用 - 手動で定義していたNode.jsグローバル変数をglobalsパッケージに置き換え - NodeJSは個別に追加(globals.nodeに含まれていないため)
- tseslint.configs.recommendedからflat/recommended-type-checkedに変更 - より厳格な型チェックを有効化 - no-unused-varsを無効化してTypeScript ESLint版を優先
|
やってみたー |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
別PRにするなら,このPRではこのファイル消しませんか
| "license": "ISC", | ||
| "devDependencies": { | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
別PRにするなら devDependencies の更新はしなくていいんじゃないすか
なぜやるのか
何をしたか
やらなかったこと
見てほしい点