@egy186/eslint-config 4.5.2 → 4.6.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 +4 -3
- package/dist/base.js +2 -2
- package/dist/browser.d.ts +19 -1
- package/dist/browser.js +1 -1
- package/dist/commonjs.d.ts +3 -1
- package/dist/react.d.ts +2 -3
- package/dist/react.js +2 -3
- package/dist/typescript-react.d.ts +2 -3
- package/dist/typescript.js +2 -0
- package/package.json +12 -12
package/dist/base.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import nPlugin from 'eslint-plugin-n';
|
|
3
2
|
declare const config: {
|
|
4
3
|
readonly files: ["**/*.{js,jsx,mjs}", "**/*.{ts,tsx,mts}"];
|
|
5
4
|
readonly languageOptions: {
|
|
6
|
-
readonly ecmaVersion:
|
|
5
|
+
readonly ecmaVersion: 2025;
|
|
7
6
|
readonly globals: {
|
|
8
7
|
readonly __dirname: false;
|
|
9
8
|
readonly __filename: false;
|
|
@@ -106,6 +105,7 @@ declare const config: {
|
|
|
106
105
|
readonly eval: false;
|
|
107
106
|
readonly EvalError: false;
|
|
108
107
|
readonly FinalizationRegistry: false;
|
|
108
|
+
readonly Float16Array: false;
|
|
109
109
|
readonly Float32Array: false;
|
|
110
110
|
readonly Float64Array: false;
|
|
111
111
|
readonly Function: false;
|
|
@@ -117,6 +117,7 @@ declare const config: {
|
|
|
117
117
|
readonly Intl: false;
|
|
118
118
|
readonly isFinite: false;
|
|
119
119
|
readonly isNaN: false;
|
|
120
|
+
readonly Iterator: false;
|
|
120
121
|
readonly JSON: false;
|
|
121
122
|
readonly Map: false;
|
|
122
123
|
readonly Math: false;
|
|
@@ -192,7 +193,7 @@ declare const config: {
|
|
|
192
193
|
configs: Record<`flat/${import("eslint-plugin-jsdoc").ConfigGroups}${import("eslint-plugin-jsdoc").ConfigVariants}${import("eslint-plugin-jsdoc").ErrorLevelVariants}`, import("eslint").Linter.Config> & Record<"examples" | "default-expressions" | "examples-and-default-expressions", import("eslint").Linter.Config[]> & Record<"flat/recommended-mixed", import("eslint").Linter.Config[]>;
|
|
193
194
|
};
|
|
194
195
|
readonly n: import("@eslint/core", { with: { "resolution-mode": "require" } }).Plugin & {
|
|
195
|
-
configs:
|
|
196
|
+
configs: import("eslint-plugin-n").Configs;
|
|
196
197
|
};
|
|
197
198
|
};
|
|
198
199
|
readonly rules: {
|
package/dist/base.js
CHANGED
|
@@ -12,9 +12,9 @@ import stylisticRules from './rules/stylistic-rules.js';
|
|
|
12
12
|
const config = {
|
|
13
13
|
files: ['**/*.{js,jsx,mjs}', '**/*.{ts,tsx,mts}'],
|
|
14
14
|
languageOptions: {
|
|
15
|
-
ecmaVersion:
|
|
15
|
+
ecmaVersion: 2025,
|
|
16
16
|
globals: {
|
|
17
|
-
...globals.
|
|
17
|
+
...globals.es2025,
|
|
18
18
|
...globals.node
|
|
19
19
|
},
|
|
20
20
|
sourceType: 'module'
|
package/dist/browser.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const config: {
|
|
|
34
34
|
readonly AudioNode: false;
|
|
35
35
|
readonly AudioParam: false;
|
|
36
36
|
readonly AudioParamMap: false;
|
|
37
|
+
readonly AudioPlaybackStats: false;
|
|
37
38
|
readonly AudioProcessingEvent: false;
|
|
38
39
|
readonly AudioScheduledSourceNode: false;
|
|
39
40
|
readonly AudioSinkInfo: false;
|
|
@@ -825,6 +826,7 @@ declare const config: {
|
|
|
825
826
|
readonly RTCSessionDescription: false;
|
|
826
827
|
readonly RTCStatsReport: false;
|
|
827
828
|
readonly RTCTrackEvent: false;
|
|
829
|
+
readonly Sanitizer: false;
|
|
828
830
|
readonly scheduler: false;
|
|
829
831
|
readonly Scheduler: false;
|
|
830
832
|
readonly Scheduling: false;
|
|
@@ -1026,6 +1028,9 @@ declare const config: {
|
|
|
1026
1028
|
readonly TextTrackList: false;
|
|
1027
1029
|
readonly TextUpdateEvent: false;
|
|
1028
1030
|
readonly TimeEvent: false;
|
|
1031
|
+
readonly TimelineTrigger: false;
|
|
1032
|
+
readonly TimelineTriggerRange: false;
|
|
1033
|
+
readonly TimelineTriggerRangeList: false;
|
|
1029
1034
|
readonly TimeRanges: false;
|
|
1030
1035
|
readonly ToggleEvent: false;
|
|
1031
1036
|
readonly toolbar: false;
|
|
@@ -1136,9 +1141,13 @@ declare const config: {
|
|
|
1136
1141
|
readonly XRAnchorSet: false;
|
|
1137
1142
|
readonly XRBoundedReferenceSpace: false;
|
|
1138
1143
|
readonly XRCamera: false;
|
|
1144
|
+
readonly XRCompositionLayer: false;
|
|
1139
1145
|
readonly XRCPUDepthInformation: false;
|
|
1146
|
+
readonly XRCubeLayer: false;
|
|
1147
|
+
readonly XRCylinderLayer: false;
|
|
1140
1148
|
readonly XRDepthInformation: false;
|
|
1141
1149
|
readonly XRDOMOverlayState: false;
|
|
1150
|
+
readonly XREquirectLayer: false;
|
|
1142
1151
|
readonly XRFrame: false;
|
|
1143
1152
|
readonly XRHand: false;
|
|
1144
1153
|
readonly XRHitTestResult: false;
|
|
@@ -1150,9 +1159,14 @@ declare const config: {
|
|
|
1150
1159
|
readonly XRJointPose: false;
|
|
1151
1160
|
readonly XRJointSpace: false;
|
|
1152
1161
|
readonly XRLayer: false;
|
|
1162
|
+
readonly XRLayerEvent: false;
|
|
1153
1163
|
readonly XRLightEstimate: false;
|
|
1154
1164
|
readonly XRLightProbe: false;
|
|
1165
|
+
readonly XRPlane: false;
|
|
1166
|
+
readonly XRPlaneSet: false;
|
|
1155
1167
|
readonly XRPose: false;
|
|
1168
|
+
readonly XRProjectionLayer: false;
|
|
1169
|
+
readonly XRQuadLayer: false;
|
|
1156
1170
|
readonly XRRay: false;
|
|
1157
1171
|
readonly XRReferenceSpace: false;
|
|
1158
1172
|
readonly XRReferenceSpaceEvent: false;
|
|
@@ -1161,6 +1175,7 @@ declare const config: {
|
|
|
1161
1175
|
readonly XRSession: false;
|
|
1162
1176
|
readonly XRSessionEvent: false;
|
|
1163
1177
|
readonly XRSpace: false;
|
|
1178
|
+
readonly XRSubImage: false;
|
|
1164
1179
|
readonly XRSystem: false;
|
|
1165
1180
|
readonly XRTransientInputHitTestResult: false;
|
|
1166
1181
|
readonly XRTransientInputHitTestSource: false;
|
|
@@ -1171,6 +1186,7 @@ declare const config: {
|
|
|
1171
1186
|
readonly XRWebGLBinding: false;
|
|
1172
1187
|
readonly XRWebGLDepthInformation: false;
|
|
1173
1188
|
readonly XRWebGLLayer: false;
|
|
1189
|
+
readonly XRWebGLSubImage: false;
|
|
1174
1190
|
readonly XSLTProcessor: false;
|
|
1175
1191
|
readonly AggregateError: false;
|
|
1176
1192
|
readonly Array: false;
|
|
@@ -1191,6 +1207,7 @@ declare const config: {
|
|
|
1191
1207
|
readonly eval: false;
|
|
1192
1208
|
readonly EvalError: false;
|
|
1193
1209
|
readonly FinalizationRegistry: false;
|
|
1210
|
+
readonly Float16Array: false;
|
|
1194
1211
|
readonly Float32Array: false;
|
|
1195
1212
|
readonly Float64Array: false;
|
|
1196
1213
|
readonly Function: false;
|
|
@@ -1202,6 +1219,7 @@ declare const config: {
|
|
|
1202
1219
|
readonly Intl: false;
|
|
1203
1220
|
readonly isFinite: false;
|
|
1204
1221
|
readonly isNaN: false;
|
|
1222
|
+
readonly Iterator: false;
|
|
1205
1223
|
readonly JSON: false;
|
|
1206
1224
|
readonly Map: false;
|
|
1207
1225
|
readonly Math: false;
|
|
@@ -1233,7 +1251,7 @@ declare const config: {
|
|
|
1233
1251
|
readonly WeakRef: false;
|
|
1234
1252
|
readonly WeakSet: false;
|
|
1235
1253
|
};
|
|
1236
|
-
readonly ecmaVersion:
|
|
1254
|
+
readonly ecmaVersion: 2025;
|
|
1237
1255
|
readonly sourceType: "module";
|
|
1238
1256
|
};
|
|
1239
1257
|
readonly rules: {
|
package/dist/browser.js
CHANGED
package/dist/commonjs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const config: {
|
|
|
3
3
|
readonly files: ["**/*.{cjs,cts}"];
|
|
4
4
|
readonly languageOptions: {
|
|
5
5
|
readonly sourceType: "commonjs";
|
|
6
|
-
readonly ecmaVersion:
|
|
6
|
+
readonly ecmaVersion: 2025;
|
|
7
7
|
readonly globals: {
|
|
8
8
|
readonly __dirname: false;
|
|
9
9
|
readonly __filename: false;
|
|
@@ -106,6 +106,7 @@ declare const config: {
|
|
|
106
106
|
readonly eval: false;
|
|
107
107
|
readonly EvalError: false;
|
|
108
108
|
readonly FinalizationRegistry: false;
|
|
109
|
+
readonly Float16Array: false;
|
|
109
110
|
readonly Float32Array: false;
|
|
110
111
|
readonly Float64Array: false;
|
|
111
112
|
readonly Function: false;
|
|
@@ -117,6 +118,7 @@ declare const config: {
|
|
|
117
118
|
readonly Intl: false;
|
|
118
119
|
readonly isFinite: false;
|
|
119
120
|
readonly isNaN: false;
|
|
121
|
+
readonly Iterator: false;
|
|
120
122
|
readonly JSON: false;
|
|
121
123
|
readonly Map: false;
|
|
122
124
|
readonly Math: false;
|
package/dist/react.d.ts
CHANGED
|
@@ -286,20 +286,19 @@ declare const config: {
|
|
|
286
286
|
};
|
|
287
287
|
readonly rules: {
|
|
288
288
|
readonly 'max-lines-per-function': ["warn", 100];
|
|
289
|
-
readonly 'react-hooks/automatic-effect-dependencies': "off";
|
|
290
289
|
readonly 'react-hooks/capitalized-calls': "off";
|
|
291
|
-
readonly 'react-hooks/component-hook-factories': "error";
|
|
292
290
|
readonly 'react-hooks/config': "error";
|
|
293
291
|
readonly 'react-hooks/error-boundaries': "error";
|
|
294
292
|
readonly 'react-hooks/exhaustive-deps': "error";
|
|
293
|
+
readonly 'react-hooks/exhaustive-effect-dependencies': "error";
|
|
295
294
|
readonly 'react-hooks/fbt': "off";
|
|
296
|
-
readonly 'react-hooks/fire': "off";
|
|
297
295
|
readonly 'react-hooks/gating': "error";
|
|
298
296
|
readonly 'react-hooks/globals': "error";
|
|
299
297
|
readonly 'react-hooks/hooks': "off";
|
|
300
298
|
readonly 'react-hooks/immutability': "error";
|
|
301
299
|
readonly 'react-hooks/incompatible-library': "error";
|
|
302
300
|
readonly 'react-hooks/invariant': "off";
|
|
301
|
+
readonly 'react-hooks/memo-dependencies': "error";
|
|
303
302
|
readonly 'react-hooks/memoized-effect-dependencies': "off";
|
|
304
303
|
readonly 'react-hooks/no-deriving-state-in-effects': "off";
|
|
305
304
|
readonly 'react-hooks/preserve-manual-memoization': "error";
|
package/dist/react.js
CHANGED
|
@@ -14,20 +14,19 @@ const config = {
|
|
|
14
14
|
},
|
|
15
15
|
rules: {
|
|
16
16
|
'max-lines-per-function': ['warn', 100],
|
|
17
|
-
'react-hooks/automatic-effect-dependencies': 'off',
|
|
18
17
|
'react-hooks/capitalized-calls': 'off',
|
|
19
|
-
'react-hooks/component-hook-factories': 'error',
|
|
20
18
|
'react-hooks/config': 'error',
|
|
21
19
|
'react-hooks/error-boundaries': 'error',
|
|
22
20
|
'react-hooks/exhaustive-deps': 'error',
|
|
21
|
+
'react-hooks/exhaustive-effect-dependencies': 'error',
|
|
23
22
|
'react-hooks/fbt': 'off',
|
|
24
|
-
'react-hooks/fire': 'off',
|
|
25
23
|
'react-hooks/gating': 'error',
|
|
26
24
|
'react-hooks/globals': 'error',
|
|
27
25
|
'react-hooks/hooks': 'off',
|
|
28
26
|
'react-hooks/immutability': 'error',
|
|
29
27
|
'react-hooks/incompatible-library': 'error',
|
|
30
28
|
'react-hooks/invariant': 'off',
|
|
29
|
+
'react-hooks/memo-dependencies': 'error',
|
|
31
30
|
'react-hooks/memoized-effect-dependencies': 'off',
|
|
32
31
|
'react-hooks/no-deriving-state-in-effects': 'off',
|
|
33
32
|
'react-hooks/preserve-manual-memoization': 'error',
|
|
@@ -27,20 +27,19 @@ declare const config: {
|
|
|
27
27
|
readonly types: readonly ["function"];
|
|
28
28
|
}];
|
|
29
29
|
readonly 'max-lines-per-function': ["warn", 100];
|
|
30
|
-
readonly 'react-hooks/automatic-effect-dependencies': "off";
|
|
31
30
|
readonly 'react-hooks/capitalized-calls': "off";
|
|
32
|
-
readonly 'react-hooks/component-hook-factories': "error";
|
|
33
31
|
readonly 'react-hooks/config': "error";
|
|
34
32
|
readonly 'react-hooks/error-boundaries': "error";
|
|
35
33
|
readonly 'react-hooks/exhaustive-deps': "error";
|
|
34
|
+
readonly 'react-hooks/exhaustive-effect-dependencies': "error";
|
|
36
35
|
readonly 'react-hooks/fbt': "off";
|
|
37
|
-
readonly 'react-hooks/fire': "off";
|
|
38
36
|
readonly 'react-hooks/gating': "error";
|
|
39
37
|
readonly 'react-hooks/globals': "error";
|
|
40
38
|
readonly 'react-hooks/hooks': "off";
|
|
41
39
|
readonly 'react-hooks/immutability': "error";
|
|
42
40
|
readonly 'react-hooks/incompatible-library': "error";
|
|
43
41
|
readonly 'react-hooks/invariant': "off";
|
|
42
|
+
readonly 'react-hooks/memo-dependencies': "error";
|
|
44
43
|
readonly 'react-hooks/memoized-effect-dependencies': "off";
|
|
45
44
|
readonly 'react-hooks/no-deriving-state-in-effects': "off";
|
|
46
45
|
readonly 'react-hooks/preserve-manual-memoization': "error";
|
package/dist/typescript.js
CHANGED
|
@@ -2,6 +2,7 @@ import { parser, plugin } from 'typescript-eslint';
|
|
|
2
2
|
const config = {
|
|
3
3
|
files: ['**/*.{ts,tsx,mts,cts}'],
|
|
4
4
|
languageOptions: {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
5
6
|
parser: parser,
|
|
6
7
|
parserOptions: {
|
|
7
8
|
projectService: true,
|
|
@@ -9,6 +10,7 @@ const config = {
|
|
|
9
10
|
}
|
|
10
11
|
},
|
|
11
12
|
plugins: {
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
12
14
|
'@typescript-eslint': plugin
|
|
13
15
|
},
|
|
14
16
|
rules: {
|
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.6.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
"@stylistic/eslint-plugin": "~5.10.0",
|
|
11
11
|
"eslint-plugin-import": "~2.32.0",
|
|
12
12
|
"eslint-plugin-jsdoc": "~62.9.0",
|
|
13
|
-
"eslint-plugin-n": "~
|
|
14
|
-
"globals": "^17.
|
|
13
|
+
"eslint-plugin-n": "~18.0.1",
|
|
14
|
+
"globals": "^17.6.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "~9.39.4",
|
|
18
|
-
"@types/node": "^25.
|
|
19
|
-
"@vitest/eslint-plugin": "~1.6.
|
|
18
|
+
"@types/node": "^25.6.2",
|
|
19
|
+
"@vitest/eslint-plugin": "~1.6.17",
|
|
20
20
|
"eslint": "~9.39.4",
|
|
21
21
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
22
22
|
"eslint-plugin-react": "~7.37.5",
|
|
23
|
-
"eslint-plugin-react-hooks": "~7.
|
|
23
|
+
"eslint-plugin-react-hooks": "~7.1.1",
|
|
24
24
|
"husky": "^9.1.7",
|
|
25
|
-
"jiti": "^2.
|
|
26
|
-
"typescript": "~6.0.
|
|
27
|
-
"typescript-eslint": "~8.
|
|
25
|
+
"jiti": "^2.7.0",
|
|
26
|
+
"typescript": "~6.0.3",
|
|
27
|
+
"typescript-eslint": "~8.59.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=22.22.2"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"eslint": "^9.35.0",
|
|
71
71
|
"eslint-import-resolver-typescript": "^4.2.2",
|
|
72
72
|
"eslint-plugin-react": "^7.36.1",
|
|
73
|
-
"eslint-plugin-react-hooks": "^7.
|
|
74
|
-
"typescript": "^6.0.2",
|
|
73
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
74
|
+
"typescript": "^5.0.4 || ^6.0.2",
|
|
75
75
|
"typescript-eslint": "^8.53.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|