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
Help us prepare for the next major release of stylelint #541
Comments
Thanks @jeddy3! Looks like there are quite a few things that need to get done. The syntax option change sounds like a big breaking change, so probably the SCSS related packages need a major version bump. |
I think it definitely should be major version bump since PostCSS 8 is used internally in new Stylelint version. @kristerkari what can we do to help with this? |
Yes, it's not a decision we took lightly. It mainly affects users, not plugin authors. We hope to make the migration for users as smooth as possible by suggesting they extend shared configs that bundle the appropriate syntax for them.
I believe there are two user-facing things the SCSS community need to do:
This plugin shouldn't need any user-facing changes and should already be compatible with the upcoming release of stylelint. We migrated to PostCSS 8 internally, but plugins are made compatible by stylelint itself. Adding the
There are quite a few moving parts. It would be good to get some pull requests open so that we can see the parts working together. I suggest:
All pull requests can use the We'd then be able to test the upcoming
Updating the stylelint dev dependency in this package will require tweaking the tests. You can use the stylelint jest preset (see #470) and then replace Feel free to at-mention me in these pull requests, and I'll be happy to take a look. @kristerkari Do those suggestions sound good to you? It looks like @niksy would be happy to get the ball rolling. |
@niksy Fantastic work on #543 & stylelint-scss/stylelint-config-recommended-scss#83. I'm going offline for a week now, but I'm happy to continue helping out when I'm back. In the meantime, if you like you can get the ball rolling on creating a
For context,
Perhaps, something similar exists for SCSS, e.g. examples in the SCSS Handbook and popular SCSS styleguides? In your pull request, I suggest using the branches of these pull requests as your dependencies:
i.e.:
And the |
Happy vacationing! :)
@kristerkari can you create that repo so we can get started? Sass related stuff is under your username so it’s best to keep it there. Or maybe we can create |
I'm not sure if it makes sense to add more stuff under my name, it would prefer to start adding stuff under |
A @niksy I suggest going ahead, creating it and starting to work on the |
@jeddy3 I guess we can use Sass Guidelines and Sass Style Guide as starting point. Is having standard config blocker for release? @kristerkari is it okay for me to open organization or shall I leave that to you and then you can add me as contributor? |
Yes, that'll do.
No, but it would be fantastic if it were ready for release. We think per language shared-config's will help reduce user confusion and plug gaps in the linter's coverage. We'd like to start advocating for their use in the We like to give the SCSS community a little more time. However, we'll probably need to release in a week regardless as it's been a long road getting to I suggest opening the organisation yourself as you can invite others as equal owners at any point. |
I'm around this week and can help out. Just at-mention me in any repos. |
@jeddy3 @kristerkari I went ahead and created organization (I’ve sent you invites) and published repository for standard config. It’s based on recommended SCSS config: https://github.com/stylelint-scss/stylelint-config-standard-scss If everything looks OK, I will create PR for updates for v14. @kristerkari I will leave to you to switch your repositories to organization |
Excellent, thank you @niksy. I've just noticed a @moeriki Thank you for creating and publishing |
I have little memory of this 😀 I can share things. Never done this so not sure. I see I can invite a maintainer on the npm package. Is that what you would need? The repo itself I think I'll archive with a link at the top of the README to a repo of yours. |
@moeriki Fantastic, thank you!
Yes, please. If you can add me ("jeddy3" on npm) as a maintainer on NPM, then I can grant access to @niksy and @kristerkari.
That works. Many thanks again! There are quite a few moving pieces involved in the next release of stylelint and this will help us out a lot. |
Thanks a lot for taking care of the stuff, I'll have a look tonight at switching the orgs etc. |
Closing as pull requests prepared and reviewed ready for release.
Thanks everyone! |
We've been working on a new major release of stylelint. There are quite a few changes (and a lot of refactoring). One of the biggest changes we've made is removing the
syntax
option and no longer bundling syntaxes in stylelint itself. Users will need to extend stylelint (via shared-configs, plugins and custom syntaxes) to lint something other than vanilla CSS.To make this easier for users to do, we've added two properties to the configuration object:
customSyntax
- which accepts an PostCSS syntax likepostcss-scss
overrides
- which allows users to configure stylelint to lint two or more languages, e.g. CSS and SCSSWe intend to improve the migration experience by updating our docs and by adding helpful error messages to stylelint when a user, for example, tries to lint an
*.scss
file but hasn't specified a custom syntax in their configuration object.This last part is why we're reaching out to you. We want to encourage users to extend a shared-config for the language they are linting, rather than add custom syntaxes and plugins themselves. We think that'll be easier for them.
We also think emphasising the
standard
configs over therecommended
ones will help users, especially new ones. Including those who use stylelint and a pretty-printer like Prettier together, as there are a number of stylistic rules in stylelint and this plugin that are complementary to Prettier, e.g. the*-empty-line-before
ones.To help us do this, will you (or any of the other contributors to this package) be willing to?:
stylelint-config-recommended-scss
to bundlepostcss-scss
stylelint-config-standard-scss
that would:stylelint-config-standard
andstylelint-config-recommended-scss
We'll then update our Getting started guide and add errors messages to stylelint to encourage users to install
stylelint-config-standard-scss
when linting SCSS.We've seen users linting SCSS with stylelint who are unaware of this plugin and all the amazing rules within it. We hope these changes will allow more users to benefit from this plugin.
Lastly, many thanks to you (and the other contributors) for maintaining this package! It's been fantastic to see the number of rules grow over the years.
The text was updated successfully, but these errors were encountered: