@egy186/eslint-config 4.1.0 → 4.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/dist/base.d.ts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/commonjs.d.ts +1 -1
- package/dist/rules/jsdoc-rules.d.ts +1 -1
- package/dist/rules/jsdoc-rules.js +1 -1
- package/dist/typescript.d.ts +1 -0
- package/dist/typescript.js +1 -0
- package/dist/vitest.d.ts +6 -2
- package/dist/vitest.js +3 -1
- package/package.json +9 -9
package/dist/base.d.ts
CHANGED
|
@@ -434,7 +434,7 @@ declare const config: {
|
|
|
434
434
|
readonly 'jsdoc/require-property-description': "error";
|
|
435
435
|
readonly 'jsdoc/require-property-name': "error";
|
|
436
436
|
readonly 'jsdoc/require-property-type': "error";
|
|
437
|
-
readonly 'jsdoc/require-rejects': "
|
|
437
|
+
readonly 'jsdoc/require-rejects': "off";
|
|
438
438
|
readonly 'jsdoc/require-returns': "error";
|
|
439
439
|
readonly 'jsdoc/require-returns-check': "error";
|
|
440
440
|
readonly 'jsdoc/require-returns-description': "error";
|
package/dist/browser.d.ts
CHANGED
|
@@ -1475,7 +1475,7 @@ declare const config: {
|
|
|
1475
1475
|
readonly 'jsdoc/require-property-description': "error";
|
|
1476
1476
|
readonly 'jsdoc/require-property-name': "error";
|
|
1477
1477
|
readonly 'jsdoc/require-property-type': "error";
|
|
1478
|
-
readonly 'jsdoc/require-rejects': "
|
|
1478
|
+
readonly 'jsdoc/require-rejects': "off";
|
|
1479
1479
|
readonly 'jsdoc/require-returns': "error";
|
|
1480
1480
|
readonly 'jsdoc/require-returns-check': "error";
|
|
1481
1481
|
readonly 'jsdoc/require-returns-description': "error";
|
package/dist/commonjs.d.ts
CHANGED
|
@@ -388,7 +388,7 @@ declare const config: {
|
|
|
388
388
|
readonly 'jsdoc/require-property-description': "error";
|
|
389
389
|
readonly 'jsdoc/require-property-name': "error";
|
|
390
390
|
readonly 'jsdoc/require-property-type': "error";
|
|
391
|
-
readonly 'jsdoc/require-rejects': "
|
|
391
|
+
readonly 'jsdoc/require-rejects': "off";
|
|
392
392
|
readonly 'jsdoc/require-returns': "error";
|
|
393
393
|
readonly 'jsdoc/require-returns-check': "error";
|
|
394
394
|
readonly 'jsdoc/require-returns-description': "error";
|
|
@@ -52,7 +52,7 @@ declare const rules: {
|
|
|
52
52
|
readonly 'jsdoc/require-property-description': "error";
|
|
53
53
|
readonly 'jsdoc/require-property-name': "error";
|
|
54
54
|
readonly 'jsdoc/require-property-type': "error";
|
|
55
|
-
readonly 'jsdoc/require-rejects': "
|
|
55
|
+
readonly 'jsdoc/require-rejects': "off";
|
|
56
56
|
readonly 'jsdoc/require-returns': "error";
|
|
57
57
|
readonly 'jsdoc/require-returns-check': "error";
|
|
58
58
|
readonly 'jsdoc/require-returns-description': "error";
|
|
@@ -50,7 +50,7 @@ const rules = {
|
|
|
50
50
|
'jsdoc/require-property-description': 'error',
|
|
51
51
|
'jsdoc/require-property-name': 'error',
|
|
52
52
|
'jsdoc/require-property-type': 'error',
|
|
53
|
-
'jsdoc/require-rejects': '
|
|
53
|
+
'jsdoc/require-rejects': 'off',
|
|
54
54
|
'jsdoc/require-returns': 'error',
|
|
55
55
|
'jsdoc/require-returns-check': 'error',
|
|
56
56
|
'jsdoc/require-returns-description': 'error',
|
package/dist/typescript.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ declare const config: {
|
|
|
141
141
|
}];
|
|
142
142
|
readonly '@typescript-eslint/no-use-before-define': "error";
|
|
143
143
|
readonly '@typescript-eslint/no-useless-constructor': "error";
|
|
144
|
+
readonly '@typescript-eslint/no-useless-default-assignment': "error";
|
|
144
145
|
readonly '@typescript-eslint/no-useless-empty-export': "error";
|
|
145
146
|
readonly '@typescript-eslint/no-wrapper-object-types': "error";
|
|
146
147
|
readonly '@typescript-eslint/non-nullable-type-assertion-style': "off";
|
package/dist/typescript.js
CHANGED
|
@@ -148,6 +148,7 @@ const config = {
|
|
|
148
148
|
],
|
|
149
149
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
150
150
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
151
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
151
152
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
152
153
|
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
153
154
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
package/dist/vitest.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare const config: {
|
|
|
55
55
|
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
56
|
readonly "vitest/no-mocks-import": "error";
|
|
57
57
|
readonly "vitest/no-standalone-expect": "error";
|
|
58
|
+
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
58
59
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
59
60
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
60
61
|
readonly "vitest/valid-describe-callback": "error";
|
|
@@ -97,6 +98,7 @@ declare const config: {
|
|
|
97
98
|
readonly "vitest/no-standalone-expect": "warn";
|
|
98
99
|
readonly "vitest/no-test-prefixes": "warn";
|
|
99
100
|
readonly "vitest/no-test-return-statement": "warn";
|
|
101
|
+
readonly "vitest/no-unneeded-async-expect-function": "warn";
|
|
100
102
|
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
101
103
|
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
102
104
|
readonly "vitest/padding-around-all": "warn";
|
|
@@ -131,6 +133,7 @@ declare const config: {
|
|
|
131
133
|
readonly "vitest/prefer-to-be-truthy": "off";
|
|
132
134
|
readonly "vitest/prefer-to-be": "warn";
|
|
133
135
|
readonly "vitest/prefer-to-contain": "warn";
|
|
136
|
+
readonly "vitest/prefer-to-have-been-called-times": "warn";
|
|
134
137
|
readonly "vitest/prefer-to-have-length": "warn";
|
|
135
138
|
readonly "vitest/prefer-todo": "warn";
|
|
136
139
|
readonly "vitest/prefer-vi-mocked": "warn";
|
|
@@ -144,7 +147,6 @@ declare const config: {
|
|
|
144
147
|
readonly "vitest/valid-expect": "warn";
|
|
145
148
|
readonly "vitest/valid-title": "warn";
|
|
146
149
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
-
readonly "vitest/require-import-vi-mock": "warn";
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
readonly env: {
|
|
@@ -213,6 +215,7 @@ declare const config: {
|
|
|
213
215
|
readonly 'vitest/no-standalone-expect': "error";
|
|
214
216
|
readonly 'vitest/no-test-prefixes': "error";
|
|
215
217
|
readonly 'vitest/no-test-return-statement': "error";
|
|
218
|
+
readonly 'vitest/no-unneeded-async-expect-function': "error";
|
|
216
219
|
readonly 'vitest/padding-around-after-all-blocks': "error";
|
|
217
220
|
readonly 'vitest/padding-around-after-each-blocks': "error";
|
|
218
221
|
readonly 'vitest/padding-around-all': "error";
|
|
@@ -240,6 +243,7 @@ declare const config: {
|
|
|
240
243
|
readonly 'vitest/prefer-importing-vitest-globals': "error";
|
|
241
244
|
readonly 'vitest/prefer-lowercase-title': "error";
|
|
242
245
|
readonly 'vitest/prefer-mock-promise-shorthand': "error";
|
|
246
|
+
readonly 'vitest/prefer-mock-return-shorthand': "error";
|
|
243
247
|
readonly 'vitest/prefer-snapshot-hint': "error";
|
|
244
248
|
readonly 'vitest/prefer-spy-on': "error";
|
|
245
249
|
readonly 'vitest/prefer-strict-boolean-matchers': "error";
|
|
@@ -249,12 +253,12 @@ declare const config: {
|
|
|
249
253
|
readonly 'vitest/prefer-to-be-object': "error";
|
|
250
254
|
readonly 'vitest/prefer-to-be-truthy': "off";
|
|
251
255
|
readonly 'vitest/prefer-to-contain': "error";
|
|
256
|
+
readonly 'vitest/prefer-to-have-been-called-times': "error";
|
|
252
257
|
readonly 'vitest/prefer-to-have-length': "error";
|
|
253
258
|
readonly 'vitest/prefer-todo': "error";
|
|
254
259
|
readonly 'vitest/prefer-vi-mocked': "error";
|
|
255
260
|
readonly 'vitest/require-awaited-expect-poll': "error";
|
|
256
261
|
readonly 'vitest/require-hook': "error";
|
|
257
|
-
readonly 'vitest/require-import-vi-mock': "error";
|
|
258
262
|
readonly 'vitest/require-local-test-context-for-concurrent-snapshots': "error";
|
|
259
263
|
readonly 'vitest/require-mock-type-parameters': "error";
|
|
260
264
|
readonly 'vitest/require-to-throw-message': "error";
|
package/dist/vitest.js
CHANGED
|
@@ -47,6 +47,7 @@ const config = {
|
|
|
47
47
|
'vitest/no-standalone-expect': 'error',
|
|
48
48
|
'vitest/no-test-prefixes': 'error',
|
|
49
49
|
'vitest/no-test-return-statement': 'error',
|
|
50
|
+
'vitest/no-unneeded-async-expect-function': 'error',
|
|
50
51
|
'vitest/padding-around-after-all-blocks': 'error',
|
|
51
52
|
'vitest/padding-around-after-each-blocks': 'error',
|
|
52
53
|
'vitest/padding-around-all': 'error',
|
|
@@ -72,6 +73,7 @@ const config = {
|
|
|
72
73
|
'vitest/prefer-importing-vitest-globals': 'error',
|
|
73
74
|
'vitest/prefer-lowercase-title': 'error',
|
|
74
75
|
'vitest/prefer-mock-promise-shorthand': 'error',
|
|
76
|
+
'vitest/prefer-mock-return-shorthand': 'error',
|
|
75
77
|
'vitest/prefer-snapshot-hint': 'error',
|
|
76
78
|
'vitest/prefer-spy-on': 'error',
|
|
77
79
|
'vitest/prefer-strict-boolean-matchers': 'error',
|
|
@@ -81,12 +83,12 @@ const config = {
|
|
|
81
83
|
'vitest/prefer-to-be-object': 'error',
|
|
82
84
|
'vitest/prefer-to-be-truthy': 'off',
|
|
83
85
|
'vitest/prefer-to-contain': 'error',
|
|
86
|
+
'vitest/prefer-to-have-been-called-times': 'error',
|
|
84
87
|
'vitest/prefer-to-have-length': 'error',
|
|
85
88
|
'vitest/prefer-todo': 'error',
|
|
86
89
|
'vitest/prefer-vi-mocked': 'error',
|
|
87
90
|
'vitest/require-awaited-expect-poll': 'error',
|
|
88
91
|
'vitest/require-hook': 'error',
|
|
89
|
-
'vitest/require-import-vi-mock': 'error',
|
|
90
92
|
'vitest/require-local-test-context-for-concurrent-snapshots': 'error',
|
|
91
93
|
'vitest/require-mock-type-parameters': 'error',
|
|
92
94
|
'vitest/require-to-throw-message': 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@stylistic/eslint-plugin": "~5.6.1",
|
|
11
11
|
"eslint-plugin-import": "~2.32.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~61.
|
|
12
|
+
"eslint-plugin-jsdoc": "~61.5.0",
|
|
13
13
|
"eslint-plugin-n": "~17.23.1",
|
|
14
14
|
"globals": "^16.5.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint/js": "~9.39.
|
|
18
|
-
"@types/node": "^
|
|
19
|
-
"@vitest/eslint-plugin": "~1.
|
|
20
|
-
"eslint": "~9.39.
|
|
17
|
+
"@eslint/js": "~9.39.2",
|
|
18
|
+
"@types/node": "^25.0.3",
|
|
19
|
+
"@vitest/eslint-plugin": "~1.6.4",
|
|
20
|
+
"eslint": "~9.39.2",
|
|
21
21
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
22
22
|
"eslint-plugin-react": "~7.37.5",
|
|
23
23
|
"eslint-plugin-react-hooks": "~7.0.1",
|
|
24
24
|
"husky": "^9.1.7",
|
|
25
25
|
"jiti": "^2.6.1",
|
|
26
26
|
"typescript": "~5.9.3",
|
|
27
|
-
"typescript-eslint": "~8.
|
|
27
|
+
"typescript-eslint": "~8.50.1"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=20.19.2"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"main": "./dist/index.js",
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@vitest/eslint-plugin": "^1.
|
|
64
|
+
"@vitest/eslint-plugin": "^1.6.4",
|
|
65
65
|
"eslint": "^9.35.0",
|
|
66
66
|
"eslint-import-resolver-typescript": "^4.2.2",
|
|
67
67
|
"eslint-plugin-react": "^7.36.1",
|
|
68
68
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
69
69
|
"typescript": "^5.0.4",
|
|
70
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript-eslint": "^8.50.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|
|
73
73
|
"@vitest/eslint-plugin": {
|