@darksheep/eslint 6.2.0 → 6.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.3.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.2.0...v6.3.0) (2024-09-10)
4
+
5
+
6
+ ### 🌟 Features
7
+
8
+ * Move prefer-node-protocol to [#571](https://github.com/DarkSheepSoftware/eslint/issues/571) ([#625](https://github.com/DarkSheepSoftware/eslint/issues/625)) ([9354bf9](https://github.com/DarkSheepSoftware/eslint/commit/9354bf950fb417324a9d8889e38267dddbbe074d))
9
+
10
+
11
+ ### 🩹 Fixes
12
+
13
+ * Better icons for file severity ([adc2db2](https://github.com/DarkSheepSoftware/eslint/commit/adc2db29cc2347203641edb0f5d39d1fbeff3bd4))
14
+ * Let formatter handle rendering errors ([7b7658b](https://github.com/DarkSheepSoftware/eslint/commit/7b7658b484645c40b7d95f6432d941fd513d319f))
15
+
3
16
  ## [6.2.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.1.1...v6.2.0) (2024-09-10)
4
17
 
5
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darksheep/eslint",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/DarkSheepSoftware/eslint"
@@ -41,14 +41,10 @@ function isInEditor() {
41
41
  }
42
42
 
43
43
  const icons = [
44
- // green tick
45
- '\u001B[32m\u{2713}\u001B[0m',
46
- // blue info circle
47
- '\u001B[34m\u{1F6C8}\u001B[0m',
48
- // yellow warning
49
- '\u001B[33m\u{26A0}\u001B[0m',
50
- // red cross mark
51
- '\u001B[31m\u{274C}\u001B[0m',
44
+ '\u001B[32m⏺\u001B[0m', // circle - green
45
+ '\u001B[34m⏺\u001B[0m', // circle - blue
46
+ '\u001B[33m⏺\u001B[0m', // circle - yellow
47
+ '\u001B[31m⏺\u001B[0m', // circle - red
52
48
  ];
53
49
 
54
50
  /** @type {Set<string>} */
@@ -70,12 +66,8 @@ export default {
70
66
  process.stdout.write(files.has(filename) ? '\r' : '\n');
71
67
  files.add(filename);
72
68
 
73
- const severity = getSeverity(messages);
74
- if (severity > 0) {
75
- console.info(messages);
76
- }
77
- const icon = icons[severity + 1];
78
- process.stdout.write(`${files.size} ${icon} ${filename}`.trim());
69
+ const icon = icons[getSeverity(messages) + 1];
70
+ process.stdout.write(`${icon} ${files.size} ${filename}`.trim());
79
71
  return messages.flat();
80
72
  },
81
73
 
@@ -24,6 +24,7 @@ const commonRules = {
24
24
  'n/no-process-exit': 'warn',
25
25
  'n/no-process-env': 'warn',
26
26
  'n/no-path-concat': 'error',
27
+ 'n/prefer-node-protocol': 'warn',
27
28
 
28
29
  'n/no-callback-literal': 'off',
29
30
  'n/no-exports-assign': 'off',
@@ -47,7 +47,7 @@ export async function createEslintUnicornConfig() {
47
47
  'unicorn/prefer-default-parameters': 'error',
48
48
  'unicorn/prefer-export-from': 'warn',
49
49
  'unicorn/prefer-native-coercion-functions': 'error',
50
- 'unicorn/prefer-node-protocol': 'warn',
50
+ 'unicorn/prefer-node-protocol': 'off',
51
51
  'unicorn/prefer-reflect-apply': 'warn',
52
52
  'unicorn/prefer-regexp-test': 'warn',
53
53
  'unicorn/require-array-join-separator': 'error',