@egy186/eslint-config 3.5.0 → 3.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 -0
- package/dist/browser.d.ts +4 -0
- package/dist/commonjs.d.ts +4 -0
- package/dist/react.d.ts +3 -2
- package/dist/react.js +1 -0
- package/dist/rules/jsdoc-rules.d.ts +4 -0
- package/dist/rules/jsdoc-rules.js +4 -0
- package/package.json +7 -7
package/dist/base.d.ts
CHANGED
|
@@ -450,6 +450,10 @@ declare const config: {
|
|
|
450
450
|
readonly 'jsdoc/text-escaping': ["error", {
|
|
451
451
|
readonly escapeHTML: true;
|
|
452
452
|
}];
|
|
453
|
+
readonly 'jsdoc/ts-method-signature-style': "error";
|
|
454
|
+
readonly 'jsdoc/ts-no-empty-object-type': "error";
|
|
455
|
+
readonly 'jsdoc/ts-no-unnecessary-template-expression': "error";
|
|
456
|
+
readonly 'jsdoc/ts-prefer-function-type': "error";
|
|
453
457
|
readonly 'jsdoc/type-formatting': "error";
|
|
454
458
|
readonly 'jsdoc/valid-types': "error";
|
|
455
459
|
readonly 'import/consistent-type-specifier-style': "error";
|
package/dist/browser.d.ts
CHANGED
|
@@ -1490,6 +1490,10 @@ declare const config: {
|
|
|
1490
1490
|
readonly 'jsdoc/text-escaping': ["error", {
|
|
1491
1491
|
readonly escapeHTML: true;
|
|
1492
1492
|
}];
|
|
1493
|
+
readonly 'jsdoc/ts-method-signature-style': "error";
|
|
1494
|
+
readonly 'jsdoc/ts-no-empty-object-type': "error";
|
|
1495
|
+
readonly 'jsdoc/ts-no-unnecessary-template-expression': "error";
|
|
1496
|
+
readonly 'jsdoc/ts-prefer-function-type': "error";
|
|
1493
1497
|
readonly 'jsdoc/type-formatting': "error";
|
|
1494
1498
|
readonly 'jsdoc/valid-types': "error";
|
|
1495
1499
|
readonly 'import/consistent-type-specifier-style': "error";
|
package/dist/commonjs.d.ts
CHANGED
|
@@ -404,6 +404,10 @@ declare const config: {
|
|
|
404
404
|
readonly 'jsdoc/text-escaping': ["error", {
|
|
405
405
|
readonly escapeHTML: true;
|
|
406
406
|
}];
|
|
407
|
+
readonly 'jsdoc/ts-method-signature-style': "error";
|
|
408
|
+
readonly 'jsdoc/ts-no-empty-object-type': "error";
|
|
409
|
+
readonly 'jsdoc/ts-no-unnecessary-template-expression': "error";
|
|
410
|
+
readonly 'jsdoc/ts-prefer-function-type': "error";
|
|
407
411
|
readonly 'jsdoc/type-formatting': "error";
|
|
408
412
|
readonly 'jsdoc/valid-types': "error";
|
|
409
413
|
readonly 'import/consistent-type-specifier-style': "error";
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ESLint } from 'eslint';
|
|
1
2
|
import react from 'eslint-plugin-react';
|
|
2
|
-
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
3
3
|
declare const config: {
|
|
4
4
|
readonly files: ["**/*.{jsx,tsx}"];
|
|
5
5
|
readonly languageOptions: {
|
|
@@ -282,7 +282,7 @@ declare const config: {
|
|
|
282
282
|
flat: Record<string, react.ReactFlatConfig>;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
readonly 'react-hooks':
|
|
285
|
+
readonly 'react-hooks': ESLint.Plugin;
|
|
286
286
|
};
|
|
287
287
|
readonly rules: {
|
|
288
288
|
readonly 'react-hooks/automatic-effect-dependencies': "off";
|
|
@@ -313,6 +313,7 @@ declare const config: {
|
|
|
313
313
|
readonly 'react-hooks/todo': "off";
|
|
314
314
|
readonly 'react-hooks/unsupported-syntax': "error";
|
|
315
315
|
readonly 'react-hooks/use-memo': "error";
|
|
316
|
+
readonly 'react-hooks/void-use-memo': "error";
|
|
316
317
|
readonly 'react/boolean-prop-naming': "error";
|
|
317
318
|
readonly 'react/button-has-type': "error";
|
|
318
319
|
readonly 'react/checked-requires-onchange-or-readonly': "error";
|
package/dist/react.js
CHANGED
|
@@ -41,6 +41,7 @@ const config = {
|
|
|
41
41
|
'react-hooks/todo': 'off',
|
|
42
42
|
'react-hooks/unsupported-syntax': 'error',
|
|
43
43
|
'react-hooks/use-memo': 'error',
|
|
44
|
+
'react-hooks/void-use-memo': 'error',
|
|
44
45
|
'react/boolean-prop-naming': 'error',
|
|
45
46
|
'react/button-has-type': 'error',
|
|
46
47
|
'react/checked-requires-onchange-or-readonly': 'error',
|
|
@@ -73,6 +73,10 @@ declare const rules: {
|
|
|
73
73
|
readonly 'jsdoc/text-escaping': ["error", {
|
|
74
74
|
readonly escapeHTML: true;
|
|
75
75
|
}];
|
|
76
|
+
readonly 'jsdoc/ts-method-signature-style': "error";
|
|
77
|
+
readonly 'jsdoc/ts-no-empty-object-type': "error";
|
|
78
|
+
readonly 'jsdoc/ts-no-unnecessary-template-expression': "error";
|
|
79
|
+
readonly 'jsdoc/ts-prefer-function-type': "error";
|
|
76
80
|
readonly 'jsdoc/type-formatting': "error";
|
|
77
81
|
readonly 'jsdoc/valid-types': "error";
|
|
78
82
|
};
|
|
@@ -71,6 +71,10 @@ const rules = {
|
|
|
71
71
|
{ startLines: 1 }
|
|
72
72
|
],
|
|
73
73
|
'jsdoc/text-escaping': ['error', { escapeHTML: true }],
|
|
74
|
+
'jsdoc/ts-method-signature-style': 'error',
|
|
75
|
+
'jsdoc/ts-no-empty-object-type': 'error',
|
|
76
|
+
'jsdoc/ts-no-unnecessary-template-expression': 'error',
|
|
77
|
+
'jsdoc/ts-prefer-function-type': 'error',
|
|
74
78
|
'jsdoc/type-formatting': 'error',
|
|
75
79
|
'jsdoc/valid-types': 'error'
|
|
76
80
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@stylistic/eslint-plugin": "~5.4.0",
|
|
11
11
|
"eslint-plugin-import": "~2.32.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~
|
|
12
|
+
"eslint-plugin-jsdoc": "~61.1.4",
|
|
13
13
|
"eslint-plugin-n": "~17.23.1",
|
|
14
14
|
"globals": "^16.4.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "~9.37.0",
|
|
18
|
-
"@types/node": "^24.
|
|
19
|
-
"@vitest/eslint-plugin": "~1.3.
|
|
18
|
+
"@types/node": "^24.8.1",
|
|
19
|
+
"@vitest/eslint-plugin": "~1.3.20",
|
|
20
20
|
"eslint": "~9.37.0",
|
|
21
21
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
22
22
|
"eslint-plugin-jest": "~29.0.1",
|
|
23
23
|
"eslint-plugin-react": "~7.37.5",
|
|
24
|
-
"eslint-plugin-react-hooks": "~
|
|
24
|
+
"eslint-plugin-react-hooks": "~7.0.0",
|
|
25
25
|
"husky": "^9.1.7",
|
|
26
26
|
"jiti": "^2.6.1",
|
|
27
27
|
"typescript": "~5.9.3",
|
|
28
|
-
"typescript-eslint": "~8.
|
|
28
|
+
"typescript-eslint": "~8.46.1"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=20.19.2"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint-import-resolver-typescript": "^4.2.2",
|
|
72
72
|
"eslint-plugin-jest": "^29.0.1",
|
|
73
73
|
"eslint-plugin-react": "^7.36.1",
|
|
74
|
-
"eslint-plugin-react-hooks": "^
|
|
74
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
75
75
|
"typescript": "^5.0.4",
|
|
76
76
|
"typescript-eslint": "^8.32.0"
|
|
77
77
|
},
|