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

build: Upgrade stylelint to version 16 and fix issues #2194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhopman
Copy link
Contributor

@rhopman rhopman commented Nov 8, 2024

Upgrade stylelint from version 10 to 16 and fix all the stylelint and prettier issues in scss files.

Description

The changes in .stylelintrc reflect the de facto standards that seem to be used in the project, but were not conforming to the stylelint configuration.

The following deprecated stylistic rules are no longer supported in stylelint, and the checks are taken over by prettier:

  • string-quotes
  • max-empty-lines
  • max-line-length

To keep checking these rules, prettier is now included in the lint script. Since the scope of this PR is limited to SCSS, I have added the following file types to .prettierignore, to exclude them from being processed by prettier:

  • html
  • js
  • json
  • md
  • ts
  • yml

I propose to include these in separate pull requests, since each file type will involve fixing the current non-conforming files (especially ts).

With the fixes in this PR, the commands npx stylelint "src/**/*.scss" and npx prettier . --check run without issues.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • If you have multiple commits please combine them into one commit by squashing them.

  • Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.

Migrate upgrade stylelint from version 10 to 16 and fix all the
stylelint and prettier issues in scss files.

The following deprecated stylistic rules are no longer supported in
stylelint, and the checks are taken over by prettier:

- string-quotes
- max-empty-lines
- max-line-length
@rhopman
Copy link
Contributor Author

rhopman commented Nov 15, 2024

@adamsaghy @alberto-art3ch do you have time to review this? After this, I will also propose pre-commit hooks for the linting, but that should probably be a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant