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

StyleLint plugin should work without configuration and just use default one #33

Merged
merged 3 commits into from
Sep 30, 2016

Conversation

artyomtrityak
Copy link
Contributor

Currently it throws exception for this config:

plugins: [
  new StyleLintPlugin()
]

This is fix for this use case

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage increased (+7.8%) to 95.0% when pulling e03443c on artyomtrityak:master into 53a19b5 on vieron:master.

Copy link
Contributor

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! TBH I think the good reason for requiring the config is to make sure your .stylelintrc file is picked up.

I suppose we could allow you to just pass in the path to your .stylelintrc as the only option and then just use the defaults for the rest. What do you think?


return pack(assign({}, baseConfig, config))
.then(function (stats) {
expect(stats.compilation.errors).to.have.length(0);
Copy link
Contributor

@JaKXz JaKXz Sep 21, 2016

Choose a reason for hiding this comment

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

Could you add the assertion for the stats.compilation.warnings as well (since the test title implies it)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@artyomtrityak
Copy link
Contributor Author

I don't think we should requiring config, default one works great. Same as eslint

@coveralls
Copy link

coveralls commented Sep 21, 2016

Coverage Status

Coverage increased (+7.8%) to 95.0% when pulling b179914 on artyomtrityak:master into 53a19b5 on vieron:master.

@JaKXz
Copy link
Contributor

JaKXz commented Sep 29, 2016

@vieron I've had some time to think about this properly and I think it's a good idea. Do you have any objections? If not I'll release this as the next version :)

@JaKXz JaKXz merged commit 3d53b98 into webpack-contrib:master Sep 30, 2016
joshwiens pushed a commit that referenced this pull request Mar 31, 2018
* It should work without configuration, just use default one

* It should warn user if .stylelintrc file does not exit

* Add warnings check
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.

None yet

4 participants