CONTRIBUTING lacks dev setup and the test and lint conventions
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 78/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- eslint, github, javascript, node.js
- Domínio
- developer-experience, documentation
Direção de pesquisa
Comece por .github/CONTRIBUTING.md e depois confira README.md, eslint.config.js, tests/unit/pieces.test.js e package.json de acordo com as convenções listadas na issue. Documente Node 20, a instalação e os três scripts, as exportações CommonJS, a configuração dos testes e os globais do ESLint por arquivo; adicione ao README os links para os documentos da comunidade. O trabalho estará concluído quando alguém fazendo sua primeira contribuição puder seguir as etapas documentadas para adicionar uma função que abrange vários arquivos e executar lint e testes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
.github/CONTRIBUTING.md is 14 lines and only says to run lint and tests. It leaves out the conventions a contributor needs in order to add or move a function without lint and test failures.
Where
.github/CONTRIBUTING.md:1-14README.md:137-144,README.md:214-217,README.md:304-313eslint.config.js:35-80,tests/unit/pieces.test.js:9-20,package.json:8-10
Details
- How source files become testable. Each
js/*.jsends with a CommonJS footer, and each test rebuilds the globals by hand in dependency order. A new function needs the footer export and the wiring in every suite that loads it. - ESLint globals are listed per file. Calling a function from another file fails lint with
no-undefuntileslint.config.jsis edited. - Node version. CI uses Node 20; there is no
enginesfield,.nvmrcor mention in the docs. -
npm run format. The script exists but is not documented. - Two ESLint configs. Nothing says that
eslint.config.jsis live and.eslintrc.cjsis ignored. - README links. The README does not link CONTRIBUTING, SECURITY or the Code of Conduct, and its tree omits them.
Impact
A first-time contributor who adds a helper in one file and calls it from another gets a lint failure and a ReferenceError in tests, with nothing explaining either.
Suggested fix
Add a "Development" section: Node version, npm install, the three scripts, the export-footer and test-wiring pattern, and the per-file globals rule. Link the community files from the README.
Acceptance criteria
- A new contributor can add a cross-file function using only the documented steps
Getting started
- Relevant files:
.github/CONTRIBUTING.md,README.md - How to run tests:
npm install, thennpm testandnpm run lint - Related docs:
docs/ARCHITECTURE.md,.github/CONTRIBUTING.md
Filed by repo-audit/full-audit at 8a2c86c. Severity: medium. Effort: S. audit-key: documentation|.github/CONTRIBUTING.md|dev-setup
- Linguagem predominante
- JavaScript
- Estrelas
- 4
- Forks
- 2
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/Static_Chess
-
enhancement good first issue severity: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
TMHSDigital/Static_Chess#53 ·
-
documentation good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
TMHSDigital/Static_Chess#49 ·
-
documentation good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
TMHSDigital/Static_Chess#48 ·
-
documentation good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/Static_Chess#46 ·
-
documentation good first issue severity: low
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/Static_Chess#45 ·
Todas as issues de TMHSDigital/Static_Chess
Issues semelhantes
-
good first issue tests
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
growilabs/growi#12246 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
TMHSDigital/Free-Game-Dev-Assets#301 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100