eslint-formatter-mo
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -23,2 +23,18 @@ import path from 'node:path' | ||
const lines = [] | ||
// 1. sort by errorCount DESC | ||
// 2. sort by warningCount DESC | ||
// 3. sort by localeCompare | ||
results.sort((a, b) => { | ||
if (a.errorCount !== b.errorCount) { | ||
return b.errorCount - a.errorCount | ||
} | ||
if (a.warningCount !== b.warningCount) { | ||
return b.warningCount - a.warningCount | ||
} | ||
return a.filePath.localeCompare(b.filePath) | ||
}) | ||
results | ||
@@ -25,0 +41,0 @@ .forEach( result => { |
{ | ||
"name": "eslint-formatter-mo", | ||
"description": "Good-lookin' ESLint formatter for delightful readability", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "exports": { |
# eslint-formatter-mo | ||
![npm version](https://img.shields.io/npm/v/eslint-formatter-mo) | ||
![npm downloads](https://img.shields.io/npm/dm/eslint-formatter-mo) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
[![actions status](https://github.com/fengzilong/eslint-formatter-mo/workflows/Release/badge.svg)](https://github.com/fengzilong/eslint-formatter-mo/actions/workflows/release.yml) | ||
[![npm version](https://img.shields.io/npm/v/eslint-formatter-mo?style=flat-square)](https://www.npmjs.com/package/eslint-formatter-mo) | ||
[![actions status](https://img.shields.io/github/actions/workflow/status/fengzilong/eslint-formatter-mo/release.yml?style=flat-square)](https://github.com/fengzilong/eslint-formatter-mo/actions/workflows/release.yml) | ||
[![npm downloads](https://img.shields.io/npm/dm/eslint-formatter-mo?style=flat-square)](https://www.npmjs.com/package/eslint-formatter-mo) | ||
[![awesome](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/dustinspecker/awesome-eslint) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) | ||
@@ -17,3 +18,3 @@ Good-lookin' ESLint formatter | ||
> | ||
> If ESM doesn't work well with your Node.js version, check the 1.x version for CJS compatibility. | ||
> If v2 doesn't work well with your Node.js version, check the 1.x version for better compatibility. | ||
@@ -20,0 +21,0 @@ # Features |
15555
300
77