-
Notifications
You must be signed in to change notification settings - Fork 346
chore: ESLintのキャッシュを有効化 #2597
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
chore: ESLintのキャッシュを有効化 #2597
Conversation
ESLint Config Inspectorというリントのルールを可視化してくれるツールを起動するためのコマンドらしい https://eslint.org/docs/latest/use/command-line-interface#--inspect-config
|
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
package.json
Outdated
| "scripts": { | ||
| "// --- lint ---": "", | ||
| "lint": "eslint .", | ||
| "lint": "eslint --cache", |
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.
flat configuration fileがある場合は.はあっても無くても同じだと公式ドキュメントに書いてあったため、lint:inspectorとの統一感を出すために何となくで消してしまいました。
https://eslint.org/docs/latest/use/command-line-interface#run-the-cli
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 Overview
This PR updates documentation to inform contributors about ESLint’s cache behavior in the repository, detailing when and how the cache file is created and managed.
- Added instructions for ESLint cache creation and removal in CONTRIBUTING.md.
- Added corresponding instructions in README.md.
Reviewed Changes
| File | Description |
|---|---|
| CONTRIBUTING.md | Added information about the ESLint cache file and its management. |
| README.md | Included similar instructions regarding the ESLint cache behavior. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
sevenc-nanashi
left a comment
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.
特に変なところはなさそう。
|
レビューありがとうございます。 |
Hiroshiba
left a comment
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.
LGTM!!
eslintの実行が重いの結構気になってたので助かりました!!
内容
表題の通りです。
README.mdとCONTRIBUTING.mdのキャッシュについての案内はコピペになってしまっていますが、どちらも見る人がいそうなので書いておきました。
関連 Issue
close #2592
スクリーンショット・動画など
その他