[FEATURE]: Add missing lint and format scripts to package.json
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- eslint, javascript
- Ambito
- documentation, tooling
Direzione di ricerca
Inizia ispezionando package.json, l'esistente eslint.config.js e CONTRIBUTING.md; quindi esegui gli script npm attuali per confermare i comandi mancanti. Aggiungi gli strumenti e gli script di sviluppo richiesti, aggiorna la checklist per i contributori e verifica che npm run lint e npm run format vengano eseguiti correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- JavaScript
- Stelle
- 35
- Fork
- 98
- Merge medio
- 1g 21h
- PR unite (30g)
- 9
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OrgExplorer
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/OrgExplorer#253 · 3 commenti · 1 assegnatario ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OrgExplorer#251 · 2 commenti · 1 assegnatario ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#245 · 1 assegnatario ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/OrgExplorer#230 · 2 commenti ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/OrgExplorer#228 · 2 commenti ·
Tutte le issue di AOSSIE-Org/OrgExplorer
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Issue-Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sugarlabs/musicblocks#8924 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Apertacustomer-eng status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100