@putout/formatter-dump 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/dump.js +3 -1
  2. package/package.json +11 -10
package/lib/dump.js CHANGED
@@ -43,7 +43,9 @@ export default ({name, places, index, count, filesCount, errorsCount}) => {
43
43
  ].join('\n'));
44
44
  }
45
45
 
46
- output.push(bold(redBright(`✖ ${errorsCount} errors in ${filesCount} files`)));
46
+ const maybeS = errorsCount === 1 ? '' : 's';
47
+
48
+ output.push(bold(redBright(`✖ ${errorsCount} error${maybeS} in ${filesCount} file${maybeS}`)));
47
49
  output.push(bold(redBright(' fixable with the `--fix` option')));
48
50
 
49
51
  return output.join('\n') + '\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/formatter-dump",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊Putout formatter stores output and dump it on end",
6
6
  "homepage": "https://github.com/coderaiser/putout/tree/master/packages/formatter-dump#readme",
@@ -11,7 +11,7 @@
11
11
  "type": "module",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git://github.com/coderaiser/putout.git"
14
+ "url": "git+https://github.com/coderaiser/putout.git"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "madrun test",
@@ -35,20 +35,21 @@
35
35
  "dump"
36
36
  ],
37
37
  "devDependencies": {
38
+ "@putout/eslint-flat": "^3.0.0",
38
39
  "@putout/plugin-remove-unused-variables": "*",
39
- "@putout/test": "^9.0.0",
40
- "c8": "^9.0.0",
41
- "eslint": "^9.0.0-alpha.0",
42
- "eslint-plugin-n": "^17.0.0-0",
43
- "eslint-plugin-putout": "^22.0.0",
44
- "madrun": "^10.0.0"
40
+ "@putout/test": "^14.0.0",
41
+ "c8": "^10.0.0",
42
+ "eslint": "^9.0.0",
43
+ "eslint-plugin-n": "^17.0.0",
44
+ "eslint-plugin-putout": "^28.0.0",
45
+ "madrun": "^11.0.0"
45
46
  },
46
47
  "peerDependencies": {
47
- "putout": ">=35"
48
+ "putout": ">=40"
48
49
  },
49
50
  "license": "MIT",
50
51
  "engines": {
51
- "node": ">=18"
52
+ "node": ">=20"
52
53
  },
53
54
  "publishConfig": {
54
55
  "access": "public"