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

chore: add basic config for stylelint #996

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

w1kman
Copy link
Contributor

@w1kman w1kman commented Nov 22, 2024

What this PR does / why we need it:
This PR introduces stylelint to help ensure CSS is written according to our standards and without unintentional errors.
We currently have a bunch of bad CSS (in template literals). To not depend on the built-in abilities of some IDEs, stylelint ensures that the quality of our styles is on par with the code that we expect to pass eslint.

Which issue(s) this PR fixes:
Issues with CSS written as CSS (whether it be inside template literal or in .css files).

How to test

  1. nvm use
  2. yarn
  3. yarn stylelint

Note: this does not address the weak "type safety" of Object style usage of emotion/css
Note: I expect us to tweak and test stylelint before we (potentially) decide to merge it.

@w1kman w1kman requested review from VikaCep and ckbedwell November 22, 2024 13:36
@w1kman w1kman self-assigned this Nov 22, 2024
@w1kman w1kman added question Further information is requested frontend Needs to be implemented in the frontend application labels Dec 12, 2024
@ckbedwell
Copy link
Contributor

I think the config looks good for this. Shall we fix all the issues it flags, get it set-up in CI/CD and then merge it in or do you want to do those in separate PRs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Needs to be implemented in the frontend application question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants