@egy186/eslint-config 2.7.0 → 2.9.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/typescript.d.ts +4 -1
- package/dist/typescript.js +7 -1
- package/dist/vitest.d.ts +3 -0
- package/dist/vitest.js +1 -0
- package/package.json +13 -13
package/dist/typescript.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ declare const config: {
|
|
|
15
15
|
};
|
|
16
16
|
readonly rules: {
|
|
17
17
|
readonly '@typescript-eslint/adjacent-overload-signatures': "error";
|
|
18
|
-
readonly '@typescript-eslint/array-type': "error"
|
|
18
|
+
readonly '@typescript-eslint/array-type': ["error", {
|
|
19
|
+
readonly default: "generic";
|
|
20
|
+
readonly readonly: "generic";
|
|
21
|
+
}];
|
|
19
22
|
readonly '@typescript-eslint/await-thenable': "error";
|
|
20
23
|
readonly '@typescript-eslint/ban-ts-comment': "error";
|
|
21
24
|
readonly '@typescript-eslint/ban-tslint-comment': "error";
|
package/dist/typescript.js
CHANGED
|
@@ -13,7 +13,13 @@ const config = {
|
|
|
13
13
|
},
|
|
14
14
|
rules: {
|
|
15
15
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
16
|
-
'@typescript-eslint/array-type':
|
|
16
|
+
'@typescript-eslint/array-type': [
|
|
17
|
+
'error',
|
|
18
|
+
{
|
|
19
|
+
default: 'generic',
|
|
20
|
+
readonly: 'generic'
|
|
21
|
+
}
|
|
22
|
+
],
|
|
17
23
|
'@typescript-eslint/await-thenable': 'error',
|
|
18
24
|
'@typescript-eslint/ban-ts-comment': 'error',
|
|
19
25
|
'@typescript-eslint/ban-tslint-comment': 'error',
|
package/dist/vitest.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ declare const config: {
|
|
|
58
58
|
"prefer-todo": import("eslint").Rule.RuleModule;
|
|
59
59
|
"prefer-spy-on": import("eslint").Rule.RuleModule;
|
|
60
60
|
"prefer-comparison-matcher": import("eslint").Rule.RuleModule;
|
|
61
|
+
"prefer-describe-function-title": import("eslint").Rule.RuleModule;
|
|
61
62
|
"prefer-to-contain": import("eslint").Rule.RuleModule;
|
|
62
63
|
"prefer-expect-assertions": import("eslint").Rule.RuleModule;
|
|
63
64
|
"padding-around-after-all-blocks": import("eslint").Rule.RuleModule;
|
|
@@ -168,6 +169,7 @@ declare const config: {
|
|
|
168
169
|
readonly "vitest/prefer-todo": "warn";
|
|
169
170
|
readonly "vitest/prefer-spy-on": "warn";
|
|
170
171
|
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
172
|
+
readonly "vitest/prefer-describe-function-title": "warn";
|
|
171
173
|
readonly "vitest/prefer-to-contain": "warn";
|
|
172
174
|
readonly "vitest/prefer-expect-assertions": "warn";
|
|
173
175
|
readonly "vitest/prefer-to-be": "warn";
|
|
@@ -259,6 +261,7 @@ declare const config: {
|
|
|
259
261
|
readonly 'vitest/padding-around-test-blocks': "error";
|
|
260
262
|
readonly 'vitest/prefer-called-with': "error";
|
|
261
263
|
readonly 'vitest/prefer-comparison-matcher': "error";
|
|
264
|
+
readonly 'vitest/prefer-describe-function-title': "error";
|
|
262
265
|
readonly 'vitest/prefer-each': "error";
|
|
263
266
|
readonly 'vitest/prefer-equality-matcher': "error";
|
|
264
267
|
readonly 'vitest/prefer-expect-assertions': ["error", {
|
package/dist/vitest.js
CHANGED
|
@@ -45,6 +45,7 @@ const config = {
|
|
|
45
45
|
'vitest/padding-around-test-blocks': 'error',
|
|
46
46
|
'vitest/prefer-called-with': 'error',
|
|
47
47
|
'vitest/prefer-comparison-matcher': 'error',
|
|
48
|
+
'vitest/prefer-describe-function-title': 'error',
|
|
48
49
|
'vitest/prefer-each': 'error',
|
|
49
50
|
'vitest/prefer-equality-matcher': 'error',
|
|
50
51
|
'vitest/prefer-expect-assertions': ['error', { onlyFunctionsWithAsyncKeyword: true }],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -9,24 +9,24 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@stylistic/eslint-plugin": "~4.2.0",
|
|
11
11
|
"eslint-plugin-import": "~2.31.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~50.6.
|
|
13
|
-
"eslint-plugin-n": "~17.
|
|
12
|
+
"eslint-plugin-jsdoc": "~50.6.9",
|
|
13
|
+
"eslint-plugin-n": "~17.17.0",
|
|
14
14
|
"globals": "^16.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint-stylistic/metadata": "~4.2.0",
|
|
18
|
-
"@eslint/js": "~9.
|
|
19
|
-
"@types/node": "^22.
|
|
20
|
-
"@vitest/eslint-plugin": "~1.1.
|
|
21
|
-
"eslint": "~9.
|
|
22
|
-
"eslint-import-resolver-typescript": "~3.
|
|
18
|
+
"@eslint/js": "~9.24.0",
|
|
19
|
+
"@types/node": "^22.14.0",
|
|
20
|
+
"@vitest/eslint-plugin": "~1.1.42",
|
|
21
|
+
"eslint": "~9.24.0",
|
|
22
|
+
"eslint-import-resolver-typescript": "~4.3.2",
|
|
23
23
|
"eslint-plugin-jest": "~28.11.0",
|
|
24
|
-
"eslint-plugin-react": "~7.37.
|
|
24
|
+
"eslint-plugin-react": "~7.37.5",
|
|
25
25
|
"eslint-plugin-react-hooks": "~5.2.0",
|
|
26
26
|
"husky": "^9.1.7",
|
|
27
27
|
"jiti": "^2.4.2",
|
|
28
|
-
"typescript": "~5.8.
|
|
29
|
-
"typescript-eslint": "~8.
|
|
28
|
+
"typescript": "~5.8.3",
|
|
29
|
+
"typescript-eslint": "~8.29.1"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=18.18.0"
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"license": "MIT",
|
|
65
65
|
"main": "./dist/index.js",
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
67
|
+
"@vitest/eslint-plugin": "^1.1.42",
|
|
68
68
|
"eslint": "^9.19.0",
|
|
69
|
-
"eslint-import-resolver-typescript": "^
|
|
69
|
+
"eslint-import-resolver-typescript": "^4.2.2",
|
|
70
70
|
"eslint-plugin-jest": "^28.8.3",
|
|
71
71
|
"eslint-plugin-react": "^7.36.1",
|
|
72
72
|
"eslint-plugin-react-hooks": "^5.0.0",
|