@egy186/eslint-config 4.2.0 → 4.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/dist/base.d.ts +0 -1
- package/dist/browser.d.ts +2 -8
- package/dist/commonjs.d.ts +0 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -2
- package/dist/rules/stylistic-rules.d.ts +0 -1
- package/dist/rules/stylistic-rules.js +0 -1
- package/dist/typescript.d.ts +1 -0
- package/dist/typescript.js +1 -0
- package/dist/vitest.d.ts +7 -0
- package/dist/vitest.js +6 -0
- package/package.json +10 -10
package/dist/base.d.ts
CHANGED
|
@@ -251,7 +251,6 @@ declare const config: {
|
|
|
251
251
|
readonly '@stylistic/jsx-pascal-case': "error";
|
|
252
252
|
readonly '@stylistic/jsx-quotes': ["error", "prefer-double"];
|
|
253
253
|
readonly '@stylistic/jsx-self-closing-comp': "error";
|
|
254
|
-
readonly '@stylistic/jsx-sort-props': "error";
|
|
255
254
|
readonly '@stylistic/jsx-tag-spacing': ["error", {
|
|
256
255
|
readonly beforeClosing: "never";
|
|
257
256
|
}];
|
package/dist/browser.d.ts
CHANGED
|
@@ -38,9 +38,7 @@ declare const config: {
|
|
|
38
38
|
readonly AudioScheduledSourceNode: false;
|
|
39
39
|
readonly AudioSinkInfo: false;
|
|
40
40
|
readonly AudioWorklet: false;
|
|
41
|
-
readonly AudioWorkletGlobalScope: false;
|
|
42
41
|
readonly AudioWorkletNode: false;
|
|
43
|
-
readonly AudioWorkletProcessor: false;
|
|
44
42
|
readonly AuthenticatorAssertionResponse: false;
|
|
45
43
|
readonly AuthenticatorAttestationResponse: false;
|
|
46
44
|
readonly AuthenticatorResponse: false;
|
|
@@ -174,6 +172,7 @@ declare const config: {
|
|
|
174
172
|
readonly CSSSkewY: false;
|
|
175
173
|
readonly CSSStartingStyleRule: false;
|
|
176
174
|
readonly CSSStyleDeclaration: false;
|
|
175
|
+
readonly CSSStyleProperties: false;
|
|
177
176
|
readonly CSSStyleRule: false;
|
|
178
177
|
readonly CSSStyleSheet: false;
|
|
179
178
|
readonly CSSStyleValue: false;
|
|
@@ -186,8 +185,6 @@ declare const config: {
|
|
|
186
185
|
readonly CSSUnparsedValue: false;
|
|
187
186
|
readonly CSSVariableReferenceValue: false;
|
|
188
187
|
readonly CSSViewTransitionRule: false;
|
|
189
|
-
readonly currentFrame: false;
|
|
190
|
-
readonly currentTime: false;
|
|
191
188
|
readonly CustomElementRegistry: false;
|
|
192
189
|
readonly customElements: false;
|
|
193
190
|
readonly CustomEvent: false;
|
|
@@ -784,7 +781,6 @@ declare const config: {
|
|
|
784
781
|
readonly ReadableStreamBYOBRequest: false;
|
|
785
782
|
readonly ReadableStreamDefaultController: false;
|
|
786
783
|
readonly ReadableStreamDefaultReader: false;
|
|
787
|
-
readonly registerProcessor: false;
|
|
788
784
|
readonly RelativeOrientationSensor: false;
|
|
789
785
|
readonly RemotePlayback: false;
|
|
790
786
|
readonly removeEventListener: false;
|
|
@@ -824,7 +820,6 @@ declare const config: {
|
|
|
824
820
|
readonly RTCSessionDescription: false;
|
|
825
821
|
readonly RTCStatsReport: false;
|
|
826
822
|
readonly RTCTrackEvent: false;
|
|
827
|
-
readonly sampleRate: false;
|
|
828
823
|
readonly scheduler: false;
|
|
829
824
|
readonly Scheduler: false;
|
|
830
825
|
readonly Scheduling: false;
|
|
@@ -1009,6 +1004,7 @@ declare const config: {
|
|
|
1009
1004
|
readonly TaskController: false;
|
|
1010
1005
|
readonly TaskPriorityChangeEvent: false;
|
|
1011
1006
|
readonly TaskSignal: false;
|
|
1007
|
+
readonly Temporal: false;
|
|
1012
1008
|
readonly TEMPORARY: false;
|
|
1013
1009
|
readonly Text: false;
|
|
1014
1010
|
readonly TextDecoder: false;
|
|
@@ -1120,7 +1116,6 @@ declare const config: {
|
|
|
1120
1116
|
readonly WindowControlsOverlayGeometryChangeEvent: false;
|
|
1121
1117
|
readonly Worker: false;
|
|
1122
1118
|
readonly Worklet: false;
|
|
1123
|
-
readonly WorkletGlobalScope: false;
|
|
1124
1119
|
readonly WritableStream: false;
|
|
1125
1120
|
readonly WritableStreamDefaultController: false;
|
|
1126
1121
|
readonly WritableStreamDefaultWriter: false;
|
|
@@ -1295,7 +1290,6 @@ declare const config: {
|
|
|
1295
1290
|
readonly '@stylistic/jsx-pascal-case': "error";
|
|
1296
1291
|
readonly '@stylistic/jsx-quotes': ["error", "prefer-double"];
|
|
1297
1292
|
readonly '@stylistic/jsx-self-closing-comp': "error";
|
|
1298
|
-
readonly '@stylistic/jsx-sort-props': "error";
|
|
1299
1293
|
readonly '@stylistic/jsx-tag-spacing': ["error", {
|
|
1300
1294
|
readonly beforeClosing: "never";
|
|
1301
1295
|
}];
|
package/dist/commonjs.d.ts
CHANGED
|
@@ -205,7 +205,6 @@ declare const config: {
|
|
|
205
205
|
readonly '@stylistic/jsx-pascal-case': "error";
|
|
206
206
|
readonly '@stylistic/jsx-quotes': ["error", "prefer-double"];
|
|
207
207
|
readonly '@stylistic/jsx-self-closing-comp': "error";
|
|
208
|
-
readonly '@stylistic/jsx-sort-props': "error";
|
|
209
208
|
readonly '@stylistic/jsx-tag-spacing': ["error", {
|
|
210
209
|
readonly beforeClosing: "never";
|
|
211
210
|
}];
|
package/dist/react.d.ts
CHANGED
|
@@ -377,7 +377,7 @@ declare const config: {
|
|
|
377
377
|
readonly 'react/jsx-props-no-multi-spaces': "off";
|
|
378
378
|
readonly 'react/jsx-props-no-spread-multi': "error";
|
|
379
379
|
readonly 'react/jsx-props-no-spreading': "off";
|
|
380
|
-
readonly 'react/jsx-sort-props': "
|
|
380
|
+
readonly 'react/jsx-sort-props': "error";
|
|
381
381
|
readonly 'react/jsx-tag-spacing': "off";
|
|
382
382
|
readonly 'react/jsx-uses-react': "off";
|
|
383
383
|
readonly 'react/jsx-uses-vars': "error";
|
package/dist/react.js
CHANGED
|
@@ -131,8 +131,7 @@ const config = {
|
|
|
131
131
|
'react/jsx-props-no-multi-spaces': 'off',
|
|
132
132
|
'react/jsx-props-no-spread-multi': 'error',
|
|
133
133
|
'react/jsx-props-no-spreading': 'off',
|
|
134
|
-
|
|
135
|
-
'react/jsx-sort-props': 'off',
|
|
134
|
+
'react/jsx-sort-props': 'error',
|
|
136
135
|
// Migrated to @stylistic/jsx-tag-spacing
|
|
137
136
|
'react/jsx-tag-spacing': 'off',
|
|
138
137
|
'react/jsx-uses-react': 'off',
|
|
@@ -54,7 +54,6 @@ declare const rules: {
|
|
|
54
54
|
readonly '@stylistic/jsx-pascal-case': "error";
|
|
55
55
|
readonly '@stylistic/jsx-quotes': ["error", "prefer-double"];
|
|
56
56
|
readonly '@stylistic/jsx-self-closing-comp': "error";
|
|
57
|
-
readonly '@stylistic/jsx-sort-props': "error";
|
|
58
57
|
readonly '@stylistic/jsx-tag-spacing': ["error", {
|
|
59
58
|
readonly beforeClosing: "never";
|
|
60
59
|
}];
|
|
@@ -75,7 +75,6 @@ const rules = {
|
|
|
75
75
|
'@stylistic/jsx-pascal-case': 'error',
|
|
76
76
|
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
|
|
77
77
|
'@stylistic/jsx-self-closing-comp': 'error',
|
|
78
|
-
'@stylistic/jsx-sort-props': 'error',
|
|
79
78
|
'@stylistic/jsx-tag-spacing': ['error', { beforeClosing: 'never' }],
|
|
80
79
|
'@stylistic/jsx-wrap-multilines': 'error',
|
|
81
80
|
'@stylistic/key-spacing': [
|
package/dist/typescript.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ declare const config: {
|
|
|
173
173
|
readonly '@typescript-eslint/restrict-template-expressions': "error";
|
|
174
174
|
readonly '@typescript-eslint/return-await': ["error", "always"];
|
|
175
175
|
readonly '@typescript-eslint/strict-boolean-expressions': "error";
|
|
176
|
+
readonly '@typescript-eslint/strict-void-return': "error";
|
|
176
177
|
readonly '@typescript-eslint/switch-exhaustiveness-check': "error";
|
|
177
178
|
readonly '@typescript-eslint/triple-slash-reference': "error";
|
|
178
179
|
readonly '@typescript-eslint/unbound-method': "error";
|
package/dist/typescript.js
CHANGED
|
@@ -180,6 +180,7 @@ const config = {
|
|
|
180
180
|
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
181
181
|
'@typescript-eslint/return-await': ['error', 'always'],
|
|
182
182
|
'@typescript-eslint/strict-boolean-expressions': 'error',
|
|
183
|
+
'@typescript-eslint/strict-void-return': 'error',
|
|
183
184
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
184
185
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
185
186
|
'@typescript-eslint/unbound-method': 'error',
|
package/dist/vitest.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ declare const config: {
|
|
|
147
147
|
readonly "vitest/valid-expect": "warn";
|
|
148
148
|
readonly "vitest/valid-title": "warn";
|
|
149
149
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
150
|
+
readonly "vitest/require-test-timeout": "off";
|
|
150
151
|
};
|
|
151
152
|
};
|
|
152
153
|
readonly env: {
|
|
@@ -261,6 +262,7 @@ declare const config: {
|
|
|
261
262
|
readonly 'vitest/require-hook': "error";
|
|
262
263
|
readonly 'vitest/require-local-test-context-for-concurrent-snapshots': "error";
|
|
263
264
|
readonly 'vitest/require-mock-type-parameters': "error";
|
|
265
|
+
readonly 'vitest/require-test-timeout': "off";
|
|
264
266
|
readonly 'vitest/require-to-throw-message': "error";
|
|
265
267
|
readonly 'vitest/require-top-level-describe': "error";
|
|
266
268
|
readonly 'vitest/valid-describe-callback': "error";
|
|
@@ -269,6 +271,11 @@ declare const config: {
|
|
|
269
271
|
readonly 'vitest/valid-title': "error";
|
|
270
272
|
readonly 'vitest/warn-todo': "error";
|
|
271
273
|
};
|
|
274
|
+
readonly settings: {
|
|
275
|
+
readonly vitest: {
|
|
276
|
+
readonly typecheck: true;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
272
279
|
};
|
|
273
280
|
export { config as vitest };
|
|
274
281
|
export default config;
|
package/dist/vitest.js
CHANGED
|
@@ -91,6 +91,7 @@ const config = {
|
|
|
91
91
|
'vitest/require-hook': 'error',
|
|
92
92
|
'vitest/require-local-test-context-for-concurrent-snapshots': 'error',
|
|
93
93
|
'vitest/require-mock-type-parameters': 'error',
|
|
94
|
+
'vitest/require-test-timeout': 'off',
|
|
94
95
|
'vitest/require-to-throw-message': 'error',
|
|
95
96
|
'vitest/require-top-level-describe': 'error',
|
|
96
97
|
'vitest/valid-describe-callback': 'error',
|
|
@@ -98,6 +99,11 @@ const config = {
|
|
|
98
99
|
'vitest/valid-expect-in-promise': 'error',
|
|
99
100
|
'vitest/valid-title': 'error',
|
|
100
101
|
'vitest/warn-todo': 'error'
|
|
102
|
+
},
|
|
103
|
+
settings: {
|
|
104
|
+
vitest: {
|
|
105
|
+
typecheck: true
|
|
106
|
+
}
|
|
101
107
|
}
|
|
102
108
|
};
|
|
103
109
|
export { config as vitest };
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@stylistic/eslint-plugin": "~5.
|
|
10
|
+
"@stylistic/eslint-plugin": "~5.7.1",
|
|
11
11
|
"eslint-plugin-import": "~2.32.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~
|
|
13
|
-
"eslint-plugin-n": "~17.23.
|
|
14
|
-
"globals": "^
|
|
12
|
+
"eslint-plugin-jsdoc": "~62.5.0",
|
|
13
|
+
"eslint-plugin-n": "~17.23.2",
|
|
14
|
+
"globals": "^17.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "~9.39.2",
|
|
18
|
-
"@types/node": "^25.0
|
|
19
|
-
"@vitest/eslint-plugin": "~1.6.
|
|
18
|
+
"@types/node": "^25.1.0",
|
|
19
|
+
"@vitest/eslint-plugin": "~1.6.6",
|
|
20
20
|
"eslint": "~9.39.2",
|
|
21
21
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
22
22
|
"eslint-plugin-react": "~7.37.5",
|
|
@@ -24,7 +24,7 @@
|
|
|
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.54.0"
|
|
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.6.
|
|
64
|
+
"@vitest/eslint-plugin": "^1.6.6",
|
|
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.53.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|
|
73
73
|
"@vitest/eslint-plugin": {
|