@darksheep/eslint 6.2.0 → 6.3.1
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 +20 -0
- package/package.json +5 -5
- package/src/custom-logger/index.js +6 -14
- package/src/plugins/node.js +1 -0
- package/src/plugins/unicorn.js +1 -1
- package/types/eslint.config.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.3.1](https://github.com/DarkSheepSoftware/eslint/compare/v6.3.0...v6.3.1) (2024-09-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
* Make eslint peer dependency optional ([4c915d5](https://github.com/DarkSheepSoftware/eslint/commit/4c915d53cbac4ba3e9009acb773de0133f621850))
|
|
9
|
+
|
|
10
|
+
## [6.3.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.2.0...v6.3.0) (2024-09-10)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🌟 Features
|
|
14
|
+
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 🩹 Fixes
|
|
19
|
+
|
|
20
|
+
* Better icons for file severity ([adc2db2](https://github.com/DarkSheepSoftware/eslint/commit/adc2db29cc2347203641edb0f5d39d1fbeff3bd4))
|
|
21
|
+
* Let formatter handle rendering errors ([7b7658b](https://github.com/DarkSheepSoftware/eslint/commit/7b7658b484645c40b7d95f6432d941fd513d319f))
|
|
22
|
+
|
|
3
23
|
## [6.2.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.1.1...v6.2.0) (2024-09-10)
|
|
4
24
|
|
|
5
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"type-fest": "~4.26.0",
|
|
53
53
|
"typescript": "~5.6.0"
|
|
54
54
|
},
|
|
55
|
-
"peerDependencies": {
|
|
56
|
-
"eslint": "~9.10.0"
|
|
57
|
-
},
|
|
58
55
|
"peerDependenciesMeta": {
|
|
56
|
+
"eslint": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
59
|
"typescript": {
|
|
60
60
|
"optional": true
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"packageManager": "yarn@4.4.1",
|
|
64
64
|
"engines": {
|
|
65
|
-
"node": "^20 || ^
|
|
65
|
+
"node": "^20 || ^22"
|
|
66
66
|
},
|
|
67
67
|
"volta": {
|
|
68
68
|
"node": "22.8.0",
|
|
@@ -41,14 +41,10 @@ function isInEditor() {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
const icons = [
|
|
44
|
-
// green
|
|
45
|
-
'\u001B[
|
|
46
|
-
//
|
|
47
|
-
'\u001B[
|
|
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
|
|
74
|
-
|
|
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
|
|
package/src/plugins/node.js
CHANGED
package/src/plugins/unicorn.js
CHANGED
|
@@ -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': '
|
|
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',
|
package/types/eslint.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const _default: import("eslint").Linter.FlatConfig[];
|
|
2
|
+
export default _default;
|