eslint-config-vylda-typescript 5.0.0 → 5.1.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 +6 -6
- package/rules/defaultTs.mjs +26 -2
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
|
+
## [5.1.0] - 2025-09-21
|
|
8
|
+
### Updated
|
|
9
|
+
- Packages [Vilda Lipold]
|
|
10
|
+
- Rules
|
|
11
|
+
- @typescript-eslint/explicit-member-accessibility (no public constructor) [Vilda Lipold]
|
|
12
|
+
- @typescript-eslint/member-ordering (mishmmas wit other rules) [Vilda Lipold]
|
|
13
|
+
|
|
7
14
|
## [5.0.0] - 2025-08-30
|
|
8
15
|
### Added
|
|
9
16
|
- Rules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-vylda-typescript",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Eslint Typescript rules for JS and TS vanilla projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"homepage": "https://gitlab.com/Vylda/eslint-config-vylda-typescript",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@eslint/config-inspector": "^1.
|
|
27
|
+
"@eslint/config-inspector": "^1.3.0",
|
|
28
28
|
"@types/espree": "^10.1.0",
|
|
29
|
-
"@types/node": "^24.
|
|
29
|
+
"@types/node": "^24.5.2",
|
|
30
30
|
"espree": "^10.4.0",
|
|
31
31
|
"husky": "^9.1.7",
|
|
32
32
|
"typescript": "^5.9.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"eslint": "^9.
|
|
36
|
-
"eslint-config-vylda-vanilla": "^4.0
|
|
35
|
+
"eslint": "^9.36.0",
|
|
36
|
+
"eslint-config-vylda-vanilla": "^4.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.44.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20"
|
package/rules/defaultTs.mjs
CHANGED
|
@@ -199,7 +199,15 @@ const config = [
|
|
|
199
199
|
|
|
200
200
|
// Require explicit accessibility modifiers on class properties and methods.
|
|
201
201
|
// https://typescript-eslint.io/rules/explicit-member-accessibility/
|
|
202
|
-
'@typescript-eslint/explicit-member-accessibility':
|
|
202
|
+
'@typescript-eslint/explicit-member-accessibility': [
|
|
203
|
+
'error',
|
|
204
|
+
{
|
|
205
|
+
accessibility: 'explicit',
|
|
206
|
+
overrides: {
|
|
207
|
+
constructors: 'no-public',
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
],
|
|
203
211
|
|
|
204
212
|
// Require explicit return and argument types on exported functions' and classes' public class methods.
|
|
205
213
|
// https://typescript-eslint.io/rules/explicit-module-boundary-types/
|
|
@@ -215,7 +223,23 @@ const config = [
|
|
|
215
223
|
|
|
216
224
|
// Require a consistent member declaration order.
|
|
217
225
|
// https://typescript-eslint.io/rules/member-ordering/
|
|
218
|
-
'@typescript-eslint/member-ordering':
|
|
226
|
+
'@typescript-eslint/member-ordering': [
|
|
227
|
+
'error',
|
|
228
|
+
{
|
|
229
|
+
'default': [
|
|
230
|
+
'public-static-field',
|
|
231
|
+
'protected-static-field',
|
|
232
|
+
'private-static-field',
|
|
233
|
+
'public-instance-field',
|
|
234
|
+
'protected-instance-field',
|
|
235
|
+
'private-instance-field',
|
|
236
|
+
'constructor',
|
|
237
|
+
'public-instance-method',
|
|
238
|
+
'protected-instance-method',
|
|
239
|
+
'private-instance-method',
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
],
|
|
219
243
|
|
|
220
244
|
// Enforce using a particular method signature syntax.
|
|
221
245
|
// https://typescript-eslint.io/rules/method-signature-style/
|