@akinon/eslint-plugin-projectzero 2.0.0-beta.11 → 2.0.0-beta.13
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/CHANGELOG.md
CHANGED
|
@@ -1,57 +1,112 @@
|
|
|
1
1
|
# @akinon/eslint-plugin-projectzero
|
|
2
2
|
|
|
3
|
-
## 2.0.0-beta.
|
|
3
|
+
## 2.0.0-beta.13
|
|
4
|
+
|
|
5
|
+
## 1.118.0
|
|
6
|
+
|
|
7
|
+
## 1.117.0
|
|
8
|
+
|
|
9
|
+
## 1.116.0
|
|
10
|
+
|
|
11
|
+
## 1.115.0
|
|
12
|
+
|
|
13
|
+
## 1.114.0
|
|
14
|
+
|
|
15
|
+
## 1.113.0
|
|
16
|
+
|
|
17
|
+
## 1.112.0
|
|
18
|
+
|
|
19
|
+
## 1.111.0
|
|
20
|
+
|
|
21
|
+
## 1.110.0
|
|
22
|
+
|
|
23
|
+
## 1.109.0
|
|
24
|
+
|
|
25
|
+
## 1.108.0
|
|
26
|
+
|
|
27
|
+
## 1.107.0
|
|
28
|
+
|
|
29
|
+
## 1.106.0
|
|
30
|
+
|
|
31
|
+
## 1.105.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
6
34
|
|
|
7
|
-
-
|
|
35
|
+
- 62779ee: ZERO-3668: Refactor check-menu-depth rule to simplify depth validation logic and remove unused error messages
|
|
36
|
+
|
|
37
|
+
## 1.104.0
|
|
8
38
|
|
|
9
|
-
##
|
|
39
|
+
## 1.103.0
|
|
40
|
+
|
|
41
|
+
## 1.102.0
|
|
42
|
+
|
|
43
|
+
## 1.101.0
|
|
44
|
+
|
|
45
|
+
## 1.100.0
|
|
10
46
|
|
|
11
47
|
### Minor Changes
|
|
12
48
|
|
|
13
|
-
-
|
|
49
|
+
- e57cd93: ZERO-3460: prevent installment loop on payment method switch
|
|
14
50
|
|
|
15
|
-
##
|
|
51
|
+
## 1.99.0
|
|
16
52
|
|
|
17
53
|
### Minor Changes
|
|
18
54
|
|
|
19
|
-
-
|
|
55
|
+
- d58538b: ZERO-3638: Enhance RC pipeline: add fetch, merge, and pre-release setup with conditional commit
|
|
56
|
+
|
|
57
|
+
## 1.98.0
|
|
20
58
|
|
|
21
|
-
##
|
|
59
|
+
## 1.97.0
|
|
22
60
|
|
|
23
|
-
##
|
|
61
|
+
## 1.96.0
|
|
24
62
|
|
|
25
|
-
##
|
|
63
|
+
## 1.95.0
|
|
26
64
|
|
|
27
65
|
### Minor Changes
|
|
28
66
|
|
|
29
|
-
-
|
|
67
|
+
- 3b47394: ZERO-3582: Enhance check-menu-depth rule to enforce depth parameter in getMenu calls and add corresponding error messages
|
|
30
68
|
|
|
31
|
-
##
|
|
69
|
+
## 1.94.0
|
|
32
70
|
|
|
33
|
-
##
|
|
71
|
+
## 1.93.0
|
|
34
72
|
|
|
35
|
-
##
|
|
73
|
+
## 1.92.0
|
|
36
74
|
|
|
37
|
-
##
|
|
75
|
+
## 1.91.0
|
|
38
76
|
|
|
39
|
-
|
|
77
|
+
## 1.90.0
|
|
78
|
+
|
|
79
|
+
## 1.89.0
|
|
80
|
+
|
|
81
|
+
## 1.88.0
|
|
40
82
|
|
|
41
|
-
|
|
42
|
-
- 1eeb3d8: ZERO-3116: Add not found page
|
|
83
|
+
## 1.87.0
|
|
43
84
|
|
|
44
|
-
##
|
|
85
|
+
## 1.86.0
|
|
86
|
+
|
|
87
|
+
## 1.85.0
|
|
45
88
|
|
|
46
89
|
### Minor Changes
|
|
47
90
|
|
|
48
|
-
- ZERO-
|
|
91
|
+
- 443ea19: ZERO-3254: Add ESLint rule to enforce correct order of pre-order middlewares
|
|
92
|
+
|
|
93
|
+
## 1.84.0
|
|
94
|
+
|
|
95
|
+
## 1.83.0
|
|
96
|
+
|
|
97
|
+
## 1.82.0
|
|
98
|
+
|
|
99
|
+
## 1.81.0
|
|
100
|
+
|
|
101
|
+
## 1.80.0
|
|
102
|
+
|
|
103
|
+
## 1.79.0
|
|
49
104
|
|
|
50
|
-
##
|
|
105
|
+
## 1.78.0
|
|
51
106
|
|
|
52
|
-
|
|
107
|
+
## 1.77.0
|
|
53
108
|
|
|
54
|
-
|
|
109
|
+
## 1.76.0
|
|
55
110
|
|
|
56
111
|
## 1.75.0
|
|
57
112
|
|
|
@@ -4,6 +4,7 @@ const utils_1 = require("@typescript-eslint/utils");
|
|
|
4
4
|
const CORRECT_PRE_ORDER_MIDDLEWARE_ORDER = [
|
|
5
5
|
'shippingStepMiddleware',
|
|
6
6
|
'installmentOptionMiddleware',
|
|
7
|
+
'paymentOptionResetMiddleware',
|
|
7
8
|
'paymentOptionMiddleware',
|
|
8
9
|
'attributeBasedShippingOptionMiddleware',
|
|
9
10
|
'dataSourceShippingOptionMiddleware',
|
|
@@ -74,7 +75,6 @@ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
|
|
|
74
75
|
type: 'problem',
|
|
75
76
|
docs: {
|
|
76
77
|
description: 'Enforces the correct order of pre-order middlewares',
|
|
77
|
-
// @ts-expect-error
|
|
78
78
|
recommended: 'error'
|
|
79
79
|
},
|
|
80
80
|
schema: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/eslint-plugin-projectzero",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ESLint plugin for Project Zero Next",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "
|
|
17
|
-
"@typescript-eslint/parser": "
|
|
16
|
+
"@typescript-eslint/eslint-plugin": "5.44.0",
|
|
17
|
+
"@typescript-eslint/parser": "5.44.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -8,6 +8,7 @@ import { RuleContext } from '@typescript-eslint/utils/dist/ts-eslint';
|
|
|
8
8
|
const CORRECT_PRE_ORDER_MIDDLEWARE_ORDER = [
|
|
9
9
|
'shippingStepMiddleware',
|
|
10
10
|
'installmentOptionMiddleware',
|
|
11
|
+
'paymentOptionResetMiddleware',
|
|
11
12
|
'paymentOptionMiddleware',
|
|
12
13
|
'attributeBasedShippingOptionMiddleware',
|
|
13
14
|
'dataSourceShippingOptionMiddleware',
|
|
@@ -101,7 +102,6 @@ export default ESLintUtils.RuleCreator.withoutDocs({
|
|
|
101
102
|
type: 'problem',
|
|
102
103
|
docs: {
|
|
103
104
|
description: 'Enforces the correct order of pre-order middlewares',
|
|
104
|
-
// @ts-expect-error
|
|
105
105
|
recommended: 'error'
|
|
106
106
|
},
|
|
107
107
|
schema: [],
|