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

Update to Stylelint 16 + restore removed rules #18

Closed
wants to merge 4 commits into from

Conversation

lucasenicora
Copy link
Contributor

@lucasenicora lucasenicora commented Jun 13, 2024

This PR does 2 main things:

  • Update all dependencies to latest versions, including Stylelint 16
  • Restore the stylistic rules that were deprecated and removed from the standard config in Stylelint 15. See https://stylelint.io/migration-guide/to-15/ for more info

Of course this needs a whole major version change due to the breaking changes

Description

The decision of adding the @Stylistic package was based on the fact that these rules were already being used by the NC config. So for me it makes sense to keep them even if this deviates from the general approach that Stylelint has decided to keep.

Note that these rules were already lost in v2 of the NC rules, because after Stylelint v15 they had to be manually enabled again in the project, due to them being removed in the stylelint standard configuration.

The configuration has been tested with my own project, and is working as expected. There're a few new warnings being raised by the no-unsupported-browser-features plugin, so the Readme was updated with the newest recommendations

Related Issue

Fixes #17

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

@lucasenicora lucasenicora requested a review from quicoto June 13, 2024 07:11
@quicoto quicoto requested review from raohmaru and easingthemes June 13, 2024 07:16
@@ -1,7 +1,7 @@
{
"name": "@netcentric/stylelint-config",
"description": "Netcentric's coding and style rules for Stylelint",
"version": "2.0.1",
"version": "3.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not change the version here, please. This will be done automatically with CI

@quicoto
Copy link
Member

quicoto commented Jun 13, 2024

Generally the commits messages have a bad format and will not trigger a proper release if merged

Please see https://github.com/Netcentric/stylelint-config/blob/main/docs/CONTRIBUTING.md regarding commit messages which add what they are.

Also here, because this PR is a breaking change, it should be stated, so the version will be bumped to next major

https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit-message-header

@quicoto quicoto self-requested a review June 13, 2024 07:19
@lucasenicora
Copy link
Contributor Author

Ah, I realised before and did a rebase, but did it wrong 😂

@lucasenicora
Copy link
Contributor Author

PR closed in favor of #19 with fixed commit messages

@lucasenicora lucasenicora deleted the feature/3.0.0-update-2 branch June 24, 2024 12:49
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.

Feature: Update to Stylelint 16, update other dependencies, and restore deprecated stylistic rules
2 participants