[FEATURE]: Add missing lint and format scripts to package.json
メンテナーはふだん 3 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- eslint, javascript
- 領域
- documentation, tooling
調査の方向性
まず package.json、既存の eslint.config.js、CONTRIBUTING.md を確認し、その後、現在の npm スクリプトを実行して不足しているコマンドを確認します。要求された開発ツールとスクリプトを追加し、コントリビューター向けチェックリストを整え、npm run lint と npm run format が正常に実行されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Feature and its Use Cases
Is your feature request related to a problem? Please describe.
The CONTRIBUTING.md checklist instructs contributors to run npm run lint before opening a pull request, but the current package.json does not define either a lint or format script.
Running:
npm run lint
currently results in:
npm ERR! Missing script: "lint"
This mismatch creates confusion for new contributors and makes it difficult to maintain consistent code quality across the project.
Describe the solution you'd like
Add standard linting and formatting scripts to package.json so contributors can easily run the same checks locally.
Proposed changes
- Install ESLint and Prettier as development dependencies:
npm install -D eslint prettier eslint-config-prettier eslint-plugin-react
- Add the following scripts to
package.json:
{
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src/",
"format": "prettier --write src/"
}
}
- Update the ESLint configuration to:
- Extend recommended React rules.
- Disable formatting conflicts with Prettier.
- Update
CONTRIBUTING.mdso that the checklist correctly references the new scripts.
Describe alternatives you've considered
-
Removing the
npm run lintreference fromCONTRIBUTING.mdThis would eliminate the confusion, but it would also reduce code quality standards rather than improve them.
-
Using only Prettier without ESLint
While Prettier handles formatting, ESLint helps detect potential issues such as unused variables, missing imports, and other code-quality problems that Prettier cannot catch.
Additional context
The repository already contains an eslint.config.js file, which suggests that ESLint support has been partially set up. It only lacks the corresponding npm scripts and any missing development dependencies.
Once these changes are added, the CONTRIBUTING.md checklist (npm run lint passes) will work as intended and provide a smoother onboarding experience for contributors.
Additional Context
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- JavaScript
- スター
- 44
- フォーク
- 133
- 平均マージ
- 5日 5時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/OrgExplorer のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/OrgExplorer#366 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: computeHealthScore: NaN when repo.open_issues_count is missing and computeHealthScore: NaN when repo.pushed_at is missing or invalid対応中かも @PrithvijitBose が 16 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/OrgExplorer#287 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: Analytics page keeps the previous organization's pull request data after exploring a new org対応中かも @amanbn8 が 16 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
AOSSIE-Org/OrgExplorer#272 · コメント 5 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: Rate Limit Header Coercion to `0` / False Quota Exhaustion対応中かも @Devnil434 が 24 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/OrgExplorer#251 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
[BUG]: CSV exports produce malformed files when fields contain commas or quotes対応中かも @Dotify71 が 26 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/OrgExplorer#245 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
AOSSIE-Org/OrgExplorer の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
keyxmakerx/Chronicle#1532 ·
メンテナーはふだん 1 日以内に返信
-
enhancement feature good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug lsp sev-3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
Miaotofu01/Study-Mate#206 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
Uuriko/project-room#3998 ·
メンテナーはふだん 1 日以内に返信