Skip to content
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

ER: Adopting a coding style standard/guideline #6807

Open
1 of 10 tasks
tony1ee opened this issue May 2, 2024 · 4 comments
Open
1 of 10 tasks

ER: Adopting a coding style standard/guideline #6807

tony1ee opened this issue May 2, 2024 · 4 comments
Labels
Complexity: Extra Large Dependency An issue is blocking the completion or starting of another issue ER Emergent Request Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms Feature: Refactor HTML Feature: Refactor JS / Liquid Page is working fine - JS / Liquid needs changes to become consistent with other pages role: back end/devOps Tasks for back-end developers role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours

Comments

@tony1ee
Copy link
Member

tony1ee commented May 2, 2024

Dependency

Emergent Requirement - Problem

As our project grow and attract contributions from a diverse group of developers, we have different styles of coding styles across our codebase (trailing spaces, spaces between operators, braces style, etc.). This poses a challenge for readability, maintainability and collaboration.

Proposing we explore the feasibility of adopting a unified coding format standard.

Issue you discovered this emergent requirement in

Date discovered

05/01/2024

Did you have to do something temporarily

  • YES
  • NO

Who was involved

@tony1ee
@gaylem

What happens if this is not addressed

  • Different styles of code pose a challenge for readability, maintainability and collaboration.
  • The absence of guidelines for naming, formatting, and commenting practices could adversely affect our professionalism and compromise the quality of our work.

Resources

Why Prettier
Firefox CSS Guidelines
VS Code Formatter: TypeScript
Airbnb JavaScript Style Guide
Google JavaScript Style Guide

Recommended Action Items

  • Make a new issue
  • Discuss with team
  • Let a Team Lead know

Potential solutions [draft]

We can solve this in several steps:

  • Perform an analysis of existing codebase, including the language and file type.
  • Research existing standardized guidelines and practices (potentially for each file type), then choose/define our standard
  • Creating documents for reference and training
  • Explore tooling and automation solutions: linters and formatters configurations in code editors, GHA checkers, etc.
  • Consider either incremental refactoring or major refactoring for existing non-conforming code, depending on priority.
@tony1ee tony1ee added role: front end Tasks for front end developers role: back end/devOps Tasks for back-end developers Feature: Refactor JS / Liquid Page is working fine - JS / Liquid needs changes to become consistent with other pages Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms Feature: Refactor HTML ready for dev lead Issues that tech leads or merge team members need to follow up on size: 1pt Can be done in 4-6 hours Complexity: Extra Large ER Emergent Request labels May 2, 2024
@roslynwythe
Copy link
Member

roslynwythe commented May 6, 2024

  • @tony1ee @gaylem thank you for presenting these ideas. Here at HfLA I am not familiar with a JS style guide such as the Airbnb or Google JS Style Guides, but I really liked the AIrbnb JS Style Guide and how it referenced the ESLint rules, so if a rule came up in VS Code, a dev could search the guide and find relevant advice.

@ExperimentsInHonesty are you interested in making use of a JS style guide in some manner?

@roslynwythe
Copy link
Member

Regarding linters - I want to mention that there was some work done on ESLint and eslint:prettier

@ExperimentsInHonesty are you interested in restarting the discussion around ESLint and prettier?

@roslynwythe roslynwythe added ready for product and removed ready for dev lead Issues that tech leads or merge team members need to follow up on labels May 6, 2024
@ExperimentsInHonesty
Copy link
Member

ExperimentsInHonesty commented May 6, 2024

@roslynwythe @tony1ee

@ExperimentsInHonesty are you interested in restarting the discussion around ESLint and prettier?

After all the spelling issues are addressed.

@ExperimentsInHonesty ExperimentsInHonesty added this to the 08. Team workflow milestone May 6, 2024
@roslynwythe roslynwythe added Dependency An issue is blocking the completion or starting of another issue and removed ready for product labels May 7, 2024
@t-will-gillis
Copy link
Member

For future discussion: Since we are talking about linters, here are comments regarding the lint-scss.yml workflow and the github/super-linter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Extra Large Dependency An issue is blocking the completion or starting of another issue ER Emergent Request Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages Feature: Refactor GHA Refactoring GitHub actions to fit latest architectural norms Feature: Refactor HTML Feature: Refactor JS / Liquid Page is working fine - JS / Liquid needs changes to become consistent with other pages role: back end/devOps Tasks for back-end developers role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours
Projects
Development

No branches or pull requests

4 participants