eslint-config-vylda-typescript 6.1.0 → 6.2.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 +7 -0
- package/package.json +5 -5
- package/rules/strictTs.mjs +9 -0
package/Changelog.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to this component will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [6.2.0] - 2026-01-21
|
|
8
|
+
### Added
|
|
9
|
+
- Rules
|
|
10
|
+
- @typescript-eslint/strict-void-return [Vilda Lipold]
|
|
11
|
+
### Updated
|
|
12
|
+
- Packages [Vilda Lipold]
|
|
13
|
+
|
|
7
14
|
## [6.1.0] - 2026-01-05
|
|
8
15
|
### Updated
|
|
9
16
|
- allow number in strict-boolean-expressions rule [Vilda Lipold]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-vylda-typescript",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Eslint Typescript rules for JS and TS vanilla projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/config-inspector": "^1.4.2",
|
|
28
28
|
"@types/espree": "^10.1.0",
|
|
29
|
-
"@types/node": "^25.0.
|
|
30
|
-
"espree": "^11.
|
|
29
|
+
"@types/node": "^25.0.9",
|
|
30
|
+
"espree": "^11.1.0",
|
|
31
31
|
"husky": "^9.1.7",
|
|
32
32
|
"typescript": "^5.9.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"eslint": "^9.39.2",
|
|
36
|
-
"eslint-config-vylda-vanilla": "^5.
|
|
36
|
+
"eslint-config-vylda-vanilla": "^5.1.0",
|
|
37
37
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
38
38
|
"tslib": "^2.8.1",
|
|
39
|
-
"typescript-eslint": "^8.
|
|
39
|
+
"typescript-eslint": "^8.53.1"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20"
|
package/rules/strictTs.mjs
CHANGED
|
@@ -114,6 +114,15 @@ const config = [
|
|
|
114
114
|
// https://typescript-eslint.io/rules/restrict-template-expressions/
|
|
115
115
|
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
116
116
|
|
|
117
|
+
// Disallow passing a value-returning function in a position accepting a void function.
|
|
118
|
+
// https://typescript-eslint.io/rules/strict-void-return
|
|
119
|
+
'@typescript-eslint/strict-void-return': [
|
|
120
|
+
'error',
|
|
121
|
+
{
|
|
122
|
+
allowReturnAny: false,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
|
|
117
126
|
// Enforce unbound methods are called with their expected scope.
|
|
118
127
|
// https://typescript-eslint.io/rules/unbound-method/
|
|
119
128
|
'@typescript-eslint/unbound-method': 'error',
|