Skip to content

Conversation

@ricardogobbosouza
Copy link
Collaborator

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

The formatter option only accepted function, with this feature we can also set official formatters as string

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new StylelintPlugin({
      formatter: 'json' // See https://stylelint.io/user-guide/node-api#formatter
    )
  ],
  // ...
};

Additional Info

Resolve #201

@codecov-io
Copy link

codecov-io commented Jan 6, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (75a9ef4) to head (586e0ac).
Report is 136 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #202   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          112       121    +9     
  Branches        24        27    +3     
=========================================
+ Hits           112       121    +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ricardogobbosouza ricardogobbosouza merged commit 8d6599c into master Jan 13, 2020
@ricardogobbosouza ricardogobbosouza deleted the feat-formatter branch January 13, 2020 11:43
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.

Improve formatter option docs

3 participants