Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Remove stylelint middleware #1110

Merged
merged 3 commits into from
Sep 20, 2018

Conversation

eliperelman
Copy link
Member

Closes #805.
Closes #982.

We cannot seem to get a recent release of stylelint-webpack-plugin [1] in order to provide any value.

[1] webpack-contrib/stylelint-webpack-plugin#149

@eliperelman eliperelman added this to the v9 milestone Sep 19, 2018
@eliperelman eliperelman self-assigned this Sep 19, 2018
@edmorley
Copy link
Member

edmorley commented Sep 19, 2018

To add some additional reasons from IRC:

  1. unlike the eslint related presets in this repository, the @neutrinojs/stylelint preset doesn't actually have much to configure, and doesn't really change it's behaviour based on other presets (compared to say the interactions between the JS linting presets when using the react/preact/vue/node presets). As such it doesn't save much work over people just adding stylelint-webpack-plugin directly in their .neutrinorc.js.
  2. for CSS I don't think there's as much value for "linting during the build", compared to JS. For example, one advantage of eslint-loader is that it can give a useful linting error that might prevent/explain a runtime exception that would otherwise mean opening the browser console and figuring out why the app broke. That kind of scenario is much less likely to occur with CSS. As such a yarn lint:style that runs the styelint CLI outside of the webpack build, or an editor/IDE plugin would likely be sufficient for many cases.
  3. Given (2), one option would be for us to ditch the stylelint-webpack-plugin part of @neutrinojs/stylelint and just keep the neutrino().stylelintrc() config generation for use with the stylelint CLI. However given (1), it doesn't seem like that adds any value over people just using a static config in .stylelintrc.js and not using Neutrino for it at all.

@eliperelman eliperelman merged commit c911a21 into neutrinojs:master Sep 20, 2018
@timkelty
Copy link
Contributor

@edmorley @eliperelman late response again guys, but I totally agree. Trim the fat!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

3 participants