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

Bump stylelint-config-gds from 0.3.0 to 1.0.0 #2282

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 27, 2023

Bumps stylelint-config-gds from 0.3.0 to 1.0.0.

Changelog

Sourced from stylelint-config-gds's changelog.

1.0.0

This release upgrades to Stylelint 15 and now includes:

  • Checks for media query syntax, rules and values
  • Checks for number precision inside CSS functions
  • Fixes for duplicate rules with intentionally different units

Read about breaking changes in the Stylelint Migrating to v15.0.0 guide.

Breaking change: Removal of stylistic rules

We have removed all stylistic rules (such as tabs/spaces, indentation, etc) as they're no longer included in Stylelint common configurations as part of their deprecation in Stylelint 15.

As per Stylelint's own documentation, we recommend that projects adopt Prettier for formatting instead.

If this is not possible for your project, you can configure your projects' Stylelint configuration to use the stylelint-stylistic or stylelint-codeguide plugins to restore the deprecated rules instead.

This change was made in [pull request #44: Remove deprecated stylistic rules](alphagov/stylelint-config-gds#44).

Removal of rule enforcing single-colon pseudo elements

We removed the rule selector-pseudo-element-colon-notation preventing double-colon ::before and ::after pseudo elements.

Internet Explorer 8, 9 and 10 require single-colon :before and :after pseudo elements, but supporting these old browsers has not been a requirement for services since June 2018. If you wish to keep support you can configure your Stylelint to re-enable it.

This change was made in [pull request #36: Remove selector-pseudo-element-colon-notation](alphagov/stylelint-config-gds#36).

Commits
  • 5cdee07 Merge pull request #32 from alphagov/stylelint-15
  • 02e3c62 Merge pull request #44 from alphagov/remove-deprecated-stylistic-rules
  • a11aff1 Bump version to 1.0.0
  • bebac04 Add CHANGELOG entry for Stylelint 15
  • b8c402e Update stylelint dependencies for stylelint 15.x
  • ff52d25 Fix moved Stylelint rule documentation URLs
  • b6f49d0 Add CHANGELOG entry for deprecated stylistic rules removal
  • d988cb8 Remove deprecated stylistic rules
  • c5d793e Add CHANGELOG entry for selector-pseudo-element-colon-notation removal
  • 6c17cea Merge pull request #43 from alphagov/dependabot/npm_and_yarn/word-wrap-1.2.4
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies javascript Pull requests that update Javascript code labels Jul 27, 2023
@github-actions
Copy link

This application is owned by the Access & Permissions team.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@floehopper floehopper self-requested a review July 27, 2023 16:36
Bumps [stylelint-config-gds](https://github.com/alphagov/stylelint-config-gds) from 0.3.0 to 1.0.0.
- [Changelog](https://github.com/alphagov/stylelint-config-gds/blob/main/CHANGELOG.md)
- [Commits](alphagov/stylelint-config-gds@0.3.0...1.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-gds
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@floehopper floehopper force-pushed the dependabot/npm_and_yarn/stylelint-config-gds-1.0.0 branch from d6fb3aa to 3b25fa6 Compare July 27, 2023 16:36
Copy link
Contributor

@floehopper floehopper left a comment

Choose a reason for hiding this comment

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

From the changelog, it sounds as if we should be setting up prettier to check/format our CSS instead of stylelint, but I think we can tackle that separately. We're not seeing any of the deprecation warning they mention, so I think we're good to merge.

/cc @chrisroos @chrislo

@floehopper floehopper merged commit d4cce6f into main Jul 27, 2023
6 checks passed
@floehopper floehopper deleted the dependabot/npm_and_yarn/stylelint-config-gds-1.0.0 branch July 27, 2023 16:45
@floehopper
Copy link
Contributor

Hmm. I somehow missed these deprecation warnings which are now showing up in our build output (at least locally):

yarn run lint
yarn run v1.22.19
$ yarn run lint:js && yarn run lint:scss
$ standardx 'app/assets/javascripts/**/*.js' 'spec/javascripts/**/*.js'
$ stylelint app/assets/stylesheets/

Deprecation warnings:
 - The "at-rule-name-case" rule is deprecated.
 - The "at-rule-name-space-after" rule is deprecated.
 - The "at-rule-semicolon-newline-after" rule is deprecated.
 - The "block-closing-brace-empty-line-before" rule is deprecated.
 - The "block-closing-brace-newline-after" rule is deprecated.
 - The "block-closing-brace-newline-before" rule is deprecated.
 - The "block-closing-brace-space-before" rule is deprecated.
 - The "block-opening-brace-newline-after" rule is deprecated.
 - The "block-opening-brace-space-after" rule is deprecated.
 - The "block-opening-brace-space-before" rule is deprecated.
 - The "color-hex-case" rule is deprecated.
 - The "declaration-bang-space-after" rule is deprecated.
 - The "declaration-bang-space-before" rule is deprecated.
 - The "declaration-block-semicolon-newline-after" rule is deprecated.
 - The "declaration-block-semicolon-space-after" rule is deprecated.
 - The "declaration-block-semicolon-space-before" rule is deprecated.
 - The "declaration-block-trailing-semicolon" rule is deprecated.
 - The "declaration-colon-newline-after" rule is deprecated.
 - The "declaration-colon-space-after" rule is deprecated.
 - The "declaration-colon-space-before" rule is deprecated.
 - The "function-comma-newline-after" rule is deprecated.
 - The "function-comma-space-after" rule is deprecated.
 - The "function-comma-space-before" rule is deprecated.
 - The "function-max-empty-lines" rule is deprecated.
 - The "function-parentheses-newline-inside" rule is deprecated.
 - The "function-parentheses-space-inside" rule is deprecated.
 - The "function-whitespace-after" rule is deprecated.
 - The "max-empty-lines" rule is deprecated.
 - The "media-feature-colon-space-after" rule is deprecated.
 - The "media-feature-colon-space-before" rule is deprecated.
 - The "media-feature-name-case" rule is deprecated.
 - The "media-feature-parentheses-space-inside" rule is deprecated.
 - The "media-feature-range-operator-space-after" rule is deprecated.
 - The "media-feature-range-operator-space-before" rule is deprecated.
 - The "media-query-list-comma-newline-after" rule is deprecated.
 - The "media-query-list-comma-space-after" rule is deprecated.
 - The "media-query-list-comma-space-before" rule is deprecated.
 - The "no-empty-first-line" rule is deprecated.
 - The "no-eol-whitespace" rule is deprecated.
 - The "no-extra-semicolons" rule is deprecated.
 - The "no-missing-end-of-source-newline" rule is deprecated.
 - The "number-leading-zero" rule is deprecated.
 - The "number-no-trailing-zeros" rule is deprecated.
 - The "property-case" rule is deprecated.
 - The "selector-attribute-brackets-space-inside" rule is deprecated.
 - The "selector-attribute-operator-space-after" rule is deprecated.
 - The "selector-attribute-operator-space-before" rule is deprecated.
 - The "selector-combinator-space-after" rule is deprecated.
 - The "selector-combinator-space-before" rule is deprecated.
 - The "selector-descendant-combinator-no-non-space" rule is deprecated.
 - The "selector-list-comma-newline-after" rule is deprecated.
 - The "selector-list-comma-space-before" rule is deprecated.
 - The "selector-max-empty-lines" rule is deprecated.
 - The "selector-pseudo-class-case" rule is deprecated.
 - The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.
 - The "selector-pseudo-element-case" rule is deprecated.
 - The "string-quotes" rule is deprecated.
 - The "unit-case" rule is deprecated.
 - The "value-list-comma-newline-after" rule is deprecated.
 - The "value-list-comma-space-after" rule is deprecated.
 - The "value-list-comma-space-before" rule is deprecated.
 - The "value-list-max-empty-lines" rule is deprecated.
 - The "indentation" rule is deprecated.

Done in 1.31s.

I think we probably need to read the changelog for this upgrade more carefully and see what we can do to avoid seeing these deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant