Skip to content

LitoMore/xo-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xo-summary

Display output from xo as a list of style errors, ordered by count.

This package is inspired from standard-summary.

Install

$ npm install -g xo xo-summary

Usage

cd into your favorite javascript project, then pipe the output of xo into xo-summary:

$ cd my/project
$ xo | xo-summary

17     Missing semicolon.
8      Expected indentation of 1 tab but found 2 spaces.
4      Expected blank line between class members.
3      Expected an assignment or function call and instead saw an expression.
1      Expected blank line before this statement.
1      Callbacks must be listed after all other props
1      Unable to resolve path to module pages/login.
1      Unable to resolve path to module pages/messages.
1      Unable to resolve path to module pages/settings.
1      Shorthand props must be listed before all other props

You can also use the --name-only option to display only the rule names:

$ cd my/project
$ xo | xo-summary --name-only

17     semi
8      indent
4      lines-between-class-members
3      no-unused-expressions
3      import/no-unresolved
2      react/jsx-sort-props
1      padding-line-between-statements

Related

  • XO - JavaScript happiness style linter

License

MIT © LitoMore

About

Display output from `xo` as a list of style errors, ordered by count

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •