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 and stylelint-config-recommended #887

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 12, 2023

Bumps stylelint and stylelint-config-recommended. These dependencies needed to be updated together.
Updates stylelint from 15.11.0 to 16.0.2

Release notes

Sourced from stylelint's releases.

16.0.2

16.0.1

16.0.0

Migrating to 16.0.0 guide.

16.0.0-3

This is a pre-release version of 16.0.0. For details, see the following documents:

You can try the pre-release version via:

npm i stylelint@next

16.0.0-2

This is a pre-release version of 16.0.0. For details, see the following documents:

You can try the pre-release version via:

</tr></table> 

... (truncated)

Changelog

Sourced from stylelint's changelog.

16.0.2

16.0.1

16.0.0

Migrating to 16.0.0 guide.

Commits

Updates stylelint-config-recommended from 13.0.0 to 14.0.0

Release notes

Sourced from stylelint-config-recommended's releases.

14.0.0

  • Removed: stylelint less than 16.0.0 from peer dependencies.
  • Removed: Node.js less than 18.12.0 support.
Changelog

Sourced from stylelint-config-recommended's changelog.

14.0.0

  • Removed: stylelint less than 16.0.0 from peer dependencies.
  • Removed: Node.js less than 18.12.0 support.
Commits

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 the dependencies Pull requests that update a dependency file label Dec 12, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/stylelint-and-stylelint-config-recommended-16.0.2 branch 2 times, most recently from 28d3dce to e7df5ae Compare December 12, 2023 05:15
jo-sm added a commit that referenced this pull request Dec 12, 2023
As part of looking into #887 I
ran into a ton of difficulty getting `ts-jest` to work with ESM, with
one of the main issues being related to importing `./utils.js` style
files.

This seems to be an issue with `ts-jest` (or at least the interplay
between `ts-jest` and Jest) and from what I could tell in the issues and
code, this isn't solved yet. The solution to the underlying issue was "fixed"
by suggesting the use of a custom resolver, which is not part of the main
`ts-jest` package (see kulshekhar/ts-jest#1057).

While checking types in the test code is useful, it's not that important
since the actual code is type checked separately (both with the linter
and the compilation steps), and so instead of trying to fix `ts-jest`
and use the custom resolver, I opt for using `@swc/jest` which instead
removes the types entirely.
jo-sm added a commit that referenced this pull request Dec 12, 2023
As part of looking into #887 I
ran into a ton of difficulty getting `ts-jest` to work with ESM, with
one of the main issues being related to importing `./utils.js` style
files.

This seems to be an issue with TypeScript + Jest combination when using
ESM, and the `ts-jest` preset hasn't "fixed" this yet (by doing
something like the `moduleNameMapper` approach mentioned in [comments like this]
(kulshekhar/ts-jest#1057 (comment)). Has
there not been any PR from someone?

In any case, it's a bit frustrating that there wasn't a mention of this
in the troubleshooting docs as the issue above was pretty well
trafficked and commented on, and while there was a PR, it was closed and
there was no follow up. What's worse is that this issue has been known
for at least 4 years. There really should have been a troubleshooting
section added here even without a community contributed PR, and so I
don't have faith that either an additon to the preset or a mention in
the troubleshooting docs will happen anytime soon, at least before I
want to get Stylelint 16 in main.

While checking types in the test code is useful, it's not that important
since the actual code is type checked separately (both with the linter
and the compilation steps), and so instead of trying to fix `ts-jest`
and use the custom resolver, I opt for using `@swc/jest` which instead
removes the types entirely when compiling TS to JS. It has the added
benefit of being simpler, being only used in the `transform` config
rather than as a preset.

If at some point type checking the tests becomes important the
lint:types task can be updated to check test code too.
jo-sm added a commit that referenced this pull request Dec 12, 2023
As part of looking into #887 I
ran into a ton of difficulty getting `ts-jest` to work with ESM, with
one of the main issues being related to importing `./utils.js` style
files.

This seems to be an issue with the combination of TypeScript + Jest when using
ESM, and the `ts-jest` preset hasn't "fixed" this yet (by doing
something like the `moduleNameMapper` approach mentioned in [comments like this]
(kulshekhar/ts-jest#1057 (comment)). Has
there not been any PR from someone?

In any case, it's a bit frustrating that there wasn't a mention of this
in the troubleshooting docs as the issue above was pretty well
trafficked and commented on, and while there was a PR, it was closed and
there was no follow up. What's worse is that this issue has been known
for at least 4 years. There really should have been a troubleshooting
section added here even without a community contributed PR, and so I
don't have faith that either an additon to the preset or a mention in
the troubleshooting docs will happen anytime soon, at least before I
want to get Stylelint 16 in main.

While checking types in the test code is useful, it's not that important
since the actual code is type checked separately (both with the linter
and the compilation steps), and so instead of trying to fix `ts-jest`
and use the custom resolver, I opt for using `@swc/jest` which instead
removes the types entirely when compiling TS to JS. It has the added
benefit of being simpler, being only used in the `transform` config
rather than as a preset.

If at some point type checking the tests becomes important the
lint:types task can be updated to check test code too.
jo-sm added a commit that referenced this pull request Dec 12, 2023
As part of looking into #887 I
ran into a ton of difficulty getting `ts-jest` to work with ESM, with
one of the main issues being related to importing `./utils.js` style
files.

This seems to be an issue with the combination of TypeScript + Jest when using
ESM, and the `ts-jest` preset hasn't "fixed" this yet (by doing
something like the `moduleNameMapper` approach mentioned in
[comments like this](kulshekhar/ts-jest#1057 (comment)). Has
there not been any PR from someone?

In any case, it's a bit frustrating that there wasn't a mention of this
in the troubleshooting docs as the issue above was pretty well
trafficked and commented on, and while there was a PR, it was closed and
there was no follow up. What's worse is that this issue has been known
for at least 4 years. There really should have been a troubleshooting
section added here even without a community contributed PR, and so I
don't have faith that either an additon to the preset or a mention in
the troubleshooting docs will happen anytime soon, at least before I
want to get Stylelint 16 in main.

While checking types in the test code is useful, it's not that important
since the actual code is type checked separately (both with the linter
and the compilation steps), and so instead of trying to fix `ts-jest`
and use the custom resolver, I opt for using `@swc/jest` which instead
removes the types entirely when compiling TS to JS. It has the added
benefit of being simpler, being only used in the `transform` config
rather than as a preset.

If at some point type checking the tests becomes important the
lint:types task can be updated to check test code too.
jo-sm added a commit that referenced this pull request Dec 12, 2023
As part of looking into #887 I
ran into a ton of difficulty getting `ts-jest` to work with ESM, with
one of the main issues being related to importing `./utils.js` style
files.

This seems to be an issue with the combination of TypeScript + Jest when using
ESM, and the `ts-jest` preset hasn't "fixed" this yet (by doing
something like the `moduleNameMapper` approach mentioned in
[comments like this](kulshekhar/ts-jest#1057 (comment)). Has
there not been any PR from someone?

In any case, it's a bit frustrating that there wasn't a mention of this
in the troubleshooting docs as the issue above was pretty well
trafficked and commented on, and while there was a PR, it was closed and
there was no follow up. What's worse is that this issue has been known
for at least 4 years. There really should have been a troubleshooting
section added here even without a community contributed PR, and so I
don't have faith that either an additon to the preset or a mention in
the troubleshooting docs will happen anytime soon, at least before I
want to get Stylelint 16 in main.

While checking types in the test code is useful, it's not that important
since the actual code is type checked separately (both with the linter
and the compilation steps), and since `@swc/jest` is simpler and
hopefully doesn't have the above frustration factor, I've decided to
migrate from `ts-jest` to `@swc/jest`.

If at some point type checking the tests becomes important the
lint:types task can be updated to check test code too.
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/stylelint-and-stylelint-config-recommended-16.0.2 branch 8 times, most recently from ce3844b to 438fc49 Compare December 19, 2023 05:40
Bumps [stylelint](https://github.com/stylelint/stylelint) and [stylelint-config-recommended](https://github.com/stylelint/stylelint-config-recommended). These dependencies needed to be updated together.

Updates `stylelint` from 15.11.0 to 16.0.2
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@15.11.0...16.0.2)

Updates `stylelint-config-recommended` from 13.0.0 to 14.0.0
- [Release notes](https://github.com/stylelint/stylelint-config-recommended/releases)
- [Changelog](https://github.com/stylelint/stylelint-config-recommended/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint-config-recommended@13.0.0...14.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/stylelint-and-stylelint-config-recommended-16.0.2 branch from 438fc49 to c9b2368 Compare December 25, 2023 05:51
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 26, 2023

Superseded by #900.

@dependabot dependabot bot closed this Dec 26, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/stylelint-and-stylelint-config-recommended-16.0.2 branch December 26, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants