@dvukovic/style-guide 0.3.46 → 0.3.48
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvukovic/style-guide",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.48",
|
|
4
4
|
"description": "My own style guide",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@rimac-technology/eslint-plugin": "1.5.0",
|
|
38
38
|
"@stylistic/eslint-plugin": "2.10.1",
|
|
39
39
|
"@typescript-eslint/parser": "7.18.0",
|
|
40
|
+
"@vitest/eslint-plugin": "1.1.24",
|
|
40
41
|
"eslint-plugin-etc": "2.0.3",
|
|
41
42
|
"eslint-plugin-import-x": "4.4.2",
|
|
42
43
|
"eslint-plugin-jest": "28.9.0",
|
|
@@ -38,7 +38,12 @@ module.exports = {
|
|
|
38
38
|
"no-class-assign": "error",
|
|
39
39
|
"no-compare-neg-zero": "error",
|
|
40
40
|
"no-cond-assign": ["error", "always"],
|
|
41
|
-
"no-console":
|
|
41
|
+
"no-console": [
|
|
42
|
+
"error",
|
|
43
|
+
{
|
|
44
|
+
allow: ["warn", "error"],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
42
47
|
"no-constant-binary-expression": "error",
|
|
43
48
|
"no-constant-condition": ["error", { checkLoops: false }],
|
|
44
49
|
"no-control-regex": "error",
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
module.exports = {
|
|
3
3
|
plugins: ["jest"],
|
|
4
4
|
rules: {
|
|
5
|
-
"jest/consistent-test-it":
|
|
5
|
+
"jest/consistent-test-it": [
|
|
6
|
+
"error",
|
|
7
|
+
{ fn: "test", withinDescribe: "test" },
|
|
8
|
+
],
|
|
6
9
|
"jest/expect-expect": "error",
|
|
7
10
|
"jest/max-nested-describe": ["error", { max: 3 }],
|
|
8
11
|
"jest/no-alias-methods": "error",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/** @type {import("@types/eslint").ESLint.ConfigData} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
plugins: ["@vitest"],
|
|
4
|
+
rules: {
|
|
5
|
+
"@vitest/consistent-test-it": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
fn: "test",
|
|
9
|
+
withinDescribe: "test",
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
"@vitest/expect-expect": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
additionalTestBlockFunctions: [],
|
|
16
|
+
assertFunctionNames: ["expect"],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
"@vitest/max-expects": ["error", { max: 5 }],
|
|
20
|
+
"@vitest/max-nested-describe": ["error", { max: 2 }],
|
|
21
|
+
"@vitest/no-alias-methods": "error",
|
|
22
|
+
"@vitest/no-commented-out-tests": "error",
|
|
23
|
+
"@vitest/no-conditional-expect": "error",
|
|
24
|
+
"@vitest/no-conditional-in-test": "error",
|
|
25
|
+
"@vitest/no-conditional-tests": "error",
|
|
26
|
+
"@vitest/no-disabled-tests": "error",
|
|
27
|
+
"@vitest/no-duplicate-hooks": "error",
|
|
28
|
+
"@vitest/no-focused-tests": "error",
|
|
29
|
+
"@vitest/no-identical-title": "error",
|
|
30
|
+
"@vitest/no-import-node-test": "error",
|
|
31
|
+
"@vitest/no-interpolation-in-snapshots": "error",
|
|
32
|
+
"@vitest/no-large-snapshots": "error",
|
|
33
|
+
"@vitest/no-mocks-import": "error",
|
|
34
|
+
"@vitest/no-standalone-expect": [
|
|
35
|
+
"error",
|
|
36
|
+
{
|
|
37
|
+
additionalTestBlockFunctions: [],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
"@vitest/no-test-prefixes": "error",
|
|
41
|
+
"@vitest/no-test-return-statement": "error",
|
|
42
|
+
"@vitest/padding-around-all": "error",
|
|
43
|
+
"@vitest/prefer-called-with": "error",
|
|
44
|
+
"@vitest/prefer-comparison-matcher": "error",
|
|
45
|
+
"@vitest/prefer-each": "error",
|
|
46
|
+
"@vitest/prefer-equality-matcher": "error",
|
|
47
|
+
"@vitest/prefer-expect-resolves": "error",
|
|
48
|
+
"@vitest/prefer-hooks-in-order": "error",
|
|
49
|
+
"@vitest/prefer-hooks-on-top": "error",
|
|
50
|
+
"@vitest/prefer-lowercase-title": "error",
|
|
51
|
+
"@vitest/prefer-mock-promise-shorthand": "error",
|
|
52
|
+
"@vitest/prefer-spy-on": "error",
|
|
53
|
+
"@vitest/prefer-strict-equal": "error",
|
|
54
|
+
"@vitest/prefer-to-be": "error",
|
|
55
|
+
"@vitest/prefer-to-be-falsy": "error",
|
|
56
|
+
"@vitest/prefer-to-be-object": "error",
|
|
57
|
+
"@vitest/prefer-to-be-truthy": "error",
|
|
58
|
+
"@vitest/prefer-to-contain": "error",
|
|
59
|
+
"@vitest/prefer-to-have-length": "error",
|
|
60
|
+
"@vitest/prefer-todo": "error",
|
|
61
|
+
"@vitest/prefer-vi-mocked": "error",
|
|
62
|
+
"@vitest/require-to-throw-message": "error",
|
|
63
|
+
"@vitest/require-top-level-describe": [
|
|
64
|
+
"error",
|
|
65
|
+
{
|
|
66
|
+
maxNumberOfTopLevelDescribes: 1,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
"@vitest/valid-describe-callback": "error",
|
|
70
|
+
"@vitest/valid-expect": "error",
|
|
71
|
+
"@vitest/valid-expect-in-promise": "error",
|
|
72
|
+
"@vitest/valid-title": "error",
|
|
73
|
+
},
|
|
74
|
+
}
|