xo-summary
v2.1.1
Published
Display output from XO as a list of style errors, ordered by count
Readme
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-summaryUsage
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 propsYou 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-statementsRelated
- XO - JavaScript happiness style linter
License
MIT © LitoMore
