@harness-engineering/eslint-plugin 0.1.2 → 0.2.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/index.d.ts +95 -32
- package/dist/index.js +929 -43
- package/package.json +4 -3
- package/dist/configs/index.d.ts +0 -5
- package/dist/configs/index.d.ts.map +0 -1
- package/dist/configs/index.js +0 -8
- package/dist/configs/index.js.map +0 -1
- package/dist/configs/recommended.d.ts +0 -4
- package/dist/configs/recommended.d.ts.map +0 -1
- package/dist/configs/recommended.js +0 -16
- package/dist/configs/recommended.js.map +0 -1
- package/dist/configs/strict.d.ts +0 -4
- package/dist/configs/strict.d.ts.map +0 -1
- package/dist/configs/strict.js +0 -16
- package/dist/configs/strict.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/rules/enforce-doc-exports.d.ts +0 -12
- package/dist/rules/enforce-doc-exports.d.ts.map +0 -1
- package/dist/rules/enforce-doc-exports.js +0 -78
- package/dist/rules/enforce-doc-exports.js.map +0 -1
- package/dist/rules/index.d.ts +0 -30
- package/dist/rules/index.d.ts.map +0 -1
- package/dist/rules/index.js +0 -20
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/no-circular-deps.d.ts +0 -20
- package/dist/rules/no-circular-deps.d.ts.map +0 -1
- package/dist/rules/no-circular-deps.js +0 -110
- package/dist/rules/no-circular-deps.js.map +0 -1
- package/dist/rules/no-forbidden-imports.d.ts +0 -6
- package/dist/rules/no-forbidden-imports.d.ts.map +0 -1
- package/dist/rules/no-forbidden-imports.js +0 -58
- package/dist/rules/no-forbidden-imports.js.map +0 -1
- package/dist/rules/no-layer-violation.d.ts +0 -6
- package/dist/rules/no-layer-violation.d.ts.map +0 -1
- package/dist/rules/no-layer-violation.js +0 -62
- package/dist/rules/no-layer-violation.js.map +0 -1
- package/dist/rules/no-nested-loops-in-critical.d.ts +0 -6
- package/dist/rules/no-nested-loops-in-critical.d.ts.map +0 -1
- package/dist/rules/no-nested-loops-in-critical.js +0 -87
- package/dist/rules/no-nested-loops-in-critical.js.map +0 -1
- package/dist/rules/no-sync-io-in-async.d.ts +0 -6
- package/dist/rules/no-sync-io-in-async.d.ts.map +0 -1
- package/dist/rules/no-sync-io-in-async.js +0 -73
- package/dist/rules/no-sync-io-in-async.js.map +0 -1
- package/dist/rules/no-unbounded-array-chains.d.ts +0 -6
- package/dist/rules/no-unbounded-array-chains.d.ts.map +0 -1
- package/dist/rules/no-unbounded-array-chains.js +0 -71
- package/dist/rules/no-unbounded-array-chains.js.map +0 -1
- package/dist/rules/require-boundary-schema.d.ts +0 -6
- package/dist/rules/require-boundary-schema.d.ts.map +0 -1
- package/dist/rules/require-boundary-schema.js +0 -53
- package/dist/rules/require-boundary-schema.js.map +0 -1
- package/dist/utils/ast-helpers.d.ts +0 -14
- package/dist/utils/ast-helpers.d.ts.map +0 -1
- package/dist/utils/ast-helpers.js +0 -94
- package/dist/utils/ast-helpers.js.map +0 -1
- package/dist/utils/config-loader.d.ts +0 -10
- package/dist/utils/config-loader.d.ts.map +0 -1
- package/dist/utils/config-loader.js +0 -56
- package/dist/utils/config-loader.js.map +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -6
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/path-utils.d.ts +0 -24
- package/dist/utils/path-utils.d.ts.map +0 -1
- package/dist/utils/path-utils.js +0 -62
- package/dist/utils/path-utils.js.map +0 -1
- package/dist/utils/schema.d.ts +0 -117
- package/dist/utils/schema.d.ts.map +0 -1
- package/dist/utils/schema.js +0 -34
- package/dist/utils/schema.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,78 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
|
|
3
|
+
declare const rules: {
|
|
4
|
+
'enforce-doc-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"missingJSDoc", [{
|
|
5
|
+
ignoreTypes?: boolean;
|
|
6
|
+
ignoreInternal?: boolean;
|
|
7
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
'no-circular-deps': _typescript_eslint_utils_ts_eslint.RuleModule<"circularDep", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
'no-forbidden-imports': _typescript_eslint_utils_ts_eslint.RuleModule<"forbiddenImport", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
'no-hardcoded-path-separator': _typescript_eslint_utils_ts_eslint.RuleModule<"hardcodedPathSeparator", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
'no-layer-violation': _typescript_eslint_utils_ts_eslint.RuleModule<"layerViolation", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
'no-nested-loops-in-critical': _typescript_eslint_utils_ts_eslint.RuleModule<"nestedLoopInCritical", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
'no-sync-io-in-async': _typescript_eslint_utils_ts_eslint.RuleModule<"syncIoInAsync", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
'no-unbounded-array-chains': _typescript_eslint_utils_ts_eslint.RuleModule<"unboundedArrayChain", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
'no-unix-shell-command': _typescript_eslint_utils_ts_eslint.RuleModule<"unixShellCommand", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
'require-boundary-schema': _typescript_eslint_utils_ts_eslint.RuleModule<"missingSchema", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
2
39
|
declare const plugin: {
|
|
3
40
|
meta: {
|
|
4
41
|
name: string;
|
|
5
42
|
version: string;
|
|
6
43
|
};
|
|
7
44
|
rules: {
|
|
8
|
-
'enforce-doc-exports':
|
|
45
|
+
'enforce-doc-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"missingJSDoc", [{
|
|
9
46
|
ignoreTypes?: boolean;
|
|
10
47
|
ignoreInternal?: boolean;
|
|
11
|
-
}], unknown,
|
|
48
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
'no-circular-deps': _typescript_eslint_utils_ts_eslint.RuleModule<"circularDep", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
'no-forbidden-imports': _typescript_eslint_utils_ts_eslint.RuleModule<"forbiddenImport", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
12
55
|
name: string;
|
|
13
56
|
};
|
|
14
|
-
'no-
|
|
57
|
+
'no-hardcoded-path-separator': _typescript_eslint_utils_ts_eslint.RuleModule<"hardcodedPathSeparator", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
15
58
|
name: string;
|
|
16
59
|
};
|
|
17
|
-
'no-
|
|
60
|
+
'no-layer-violation': _typescript_eslint_utils_ts_eslint.RuleModule<"layerViolation", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
18
61
|
name: string;
|
|
19
62
|
};
|
|
20
|
-
'no-
|
|
63
|
+
'no-nested-loops-in-critical': _typescript_eslint_utils_ts_eslint.RuleModule<"nestedLoopInCritical", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
21
64
|
name: string;
|
|
22
65
|
};
|
|
23
|
-
'no-
|
|
66
|
+
'no-sync-io-in-async': _typescript_eslint_utils_ts_eslint.RuleModule<"syncIoInAsync", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
24
67
|
name: string;
|
|
25
68
|
};
|
|
26
|
-
'no-
|
|
69
|
+
'no-unbounded-array-chains': _typescript_eslint_utils_ts_eslint.RuleModule<"unboundedArrayChain", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
27
70
|
name: string;
|
|
28
71
|
};
|
|
29
|
-
'no-
|
|
72
|
+
'no-unix-shell-command': _typescript_eslint_utils_ts_eslint.RuleModule<"unixShellCommand", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
30
73
|
name: string;
|
|
31
74
|
};
|
|
32
|
-
'require-boundary-schema':
|
|
75
|
+
'require-boundary-schema': _typescript_eslint_utils_ts_eslint.RuleModule<"missingSchema", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
33
76
|
name: string;
|
|
34
77
|
};
|
|
35
78
|
};
|
|
@@ -44,6 +87,8 @@ declare const plugin: {
|
|
|
44
87
|
'@harness-engineering/no-forbidden-imports': string;
|
|
45
88
|
'@harness-engineering/require-boundary-schema': string;
|
|
46
89
|
'@harness-engineering/enforce-doc-exports': string;
|
|
90
|
+
'@harness-engineering/no-unix-shell-command': string;
|
|
91
|
+
'@harness-engineering/no-hardcoded-path-separator': string;
|
|
47
92
|
};
|
|
48
93
|
};
|
|
49
94
|
strict: {
|
|
@@ -56,13 +101,14 @@ declare const plugin: {
|
|
|
56
101
|
'@harness-engineering/no-forbidden-imports': string;
|
|
57
102
|
'@harness-engineering/require-boundary-schema': string;
|
|
58
103
|
'@harness-engineering/enforce-doc-exports': string;
|
|
104
|
+
'@harness-engineering/no-unix-shell-command': string;
|
|
105
|
+
'@harness-engineering/no-hardcoded-path-separator': string;
|
|
59
106
|
};
|
|
60
107
|
};
|
|
61
108
|
};
|
|
62
109
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export declare const configs: {
|
|
110
|
+
|
|
111
|
+
declare const configs: {
|
|
66
112
|
recommended: {
|
|
67
113
|
plugins: {
|
|
68
114
|
readonly '@harness-engineering': {
|
|
@@ -71,31 +117,37 @@ export declare const configs: {
|
|
|
71
117
|
version: string;
|
|
72
118
|
};
|
|
73
119
|
rules: {
|
|
74
|
-
'enforce-doc-exports':
|
|
120
|
+
'enforce-doc-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"missingJSDoc", [{
|
|
75
121
|
ignoreTypes?: boolean;
|
|
76
122
|
ignoreInternal?: boolean;
|
|
77
|
-
}], unknown,
|
|
123
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
78
124
|
name: string;
|
|
79
125
|
};
|
|
80
|
-
'no-circular-deps':
|
|
126
|
+
'no-circular-deps': _typescript_eslint_utils_ts_eslint.RuleModule<"circularDep", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
81
127
|
name: string;
|
|
82
128
|
};
|
|
83
|
-
'no-forbidden-imports':
|
|
129
|
+
'no-forbidden-imports': _typescript_eslint_utils_ts_eslint.RuleModule<"forbiddenImport", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
84
130
|
name: string;
|
|
85
131
|
};
|
|
86
|
-
'no-
|
|
132
|
+
'no-hardcoded-path-separator': _typescript_eslint_utils_ts_eslint.RuleModule<"hardcodedPathSeparator", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
87
133
|
name: string;
|
|
88
134
|
};
|
|
89
|
-
'no-
|
|
135
|
+
'no-layer-violation': _typescript_eslint_utils_ts_eslint.RuleModule<"layerViolation", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
90
136
|
name: string;
|
|
91
137
|
};
|
|
92
|
-
'no-
|
|
138
|
+
'no-nested-loops-in-critical': _typescript_eslint_utils_ts_eslint.RuleModule<"nestedLoopInCritical", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
93
139
|
name: string;
|
|
94
140
|
};
|
|
95
|
-
'no-
|
|
141
|
+
'no-sync-io-in-async': _typescript_eslint_utils_ts_eslint.RuleModule<"syncIoInAsync", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
96
142
|
name: string;
|
|
97
143
|
};
|
|
98
|
-
'
|
|
144
|
+
'no-unbounded-array-chains': _typescript_eslint_utils_ts_eslint.RuleModule<"unboundedArrayChain", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
145
|
+
name: string;
|
|
146
|
+
};
|
|
147
|
+
'no-unix-shell-command': _typescript_eslint_utils_ts_eslint.RuleModule<"unixShellCommand", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
'require-boundary-schema': _typescript_eslint_utils_ts_eslint.RuleModule<"missingSchema", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
99
151
|
name: string;
|
|
100
152
|
};
|
|
101
153
|
};
|
|
@@ -108,6 +160,8 @@ export declare const configs: {
|
|
|
108
160
|
'@harness-engineering/no-forbidden-imports': string;
|
|
109
161
|
'@harness-engineering/require-boundary-schema': string;
|
|
110
162
|
'@harness-engineering/enforce-doc-exports': string;
|
|
163
|
+
'@harness-engineering/no-unix-shell-command': string;
|
|
164
|
+
'@harness-engineering/no-hardcoded-path-separator': string;
|
|
111
165
|
};
|
|
112
166
|
};
|
|
113
167
|
strict: {
|
|
@@ -118,31 +172,37 @@ export declare const configs: {
|
|
|
118
172
|
version: string;
|
|
119
173
|
};
|
|
120
174
|
rules: {
|
|
121
|
-
'enforce-doc-exports':
|
|
175
|
+
'enforce-doc-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"missingJSDoc", [{
|
|
122
176
|
ignoreTypes?: boolean;
|
|
123
177
|
ignoreInternal?: boolean;
|
|
124
|
-
}], unknown,
|
|
178
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
179
|
+
name: string;
|
|
180
|
+
};
|
|
181
|
+
'no-circular-deps': _typescript_eslint_utils_ts_eslint.RuleModule<"circularDep", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
184
|
+
'no-forbidden-imports': _typescript_eslint_utils_ts_eslint.RuleModule<"forbiddenImport", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
125
185
|
name: string;
|
|
126
186
|
};
|
|
127
|
-
'no-
|
|
187
|
+
'no-hardcoded-path-separator': _typescript_eslint_utils_ts_eslint.RuleModule<"hardcodedPathSeparator", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
128
188
|
name: string;
|
|
129
189
|
};
|
|
130
|
-
'no-
|
|
190
|
+
'no-layer-violation': _typescript_eslint_utils_ts_eslint.RuleModule<"layerViolation", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
131
191
|
name: string;
|
|
132
192
|
};
|
|
133
|
-
'no-
|
|
193
|
+
'no-nested-loops-in-critical': _typescript_eslint_utils_ts_eslint.RuleModule<"nestedLoopInCritical", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
134
194
|
name: string;
|
|
135
195
|
};
|
|
136
|
-
'no-
|
|
196
|
+
'no-sync-io-in-async': _typescript_eslint_utils_ts_eslint.RuleModule<"syncIoInAsync", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
137
197
|
name: string;
|
|
138
198
|
};
|
|
139
|
-
'no-
|
|
199
|
+
'no-unbounded-array-chains': _typescript_eslint_utils_ts_eslint.RuleModule<"unboundedArrayChain", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
140
200
|
name: string;
|
|
141
201
|
};
|
|
142
|
-
'no-
|
|
202
|
+
'no-unix-shell-command': _typescript_eslint_utils_ts_eslint.RuleModule<"unixShellCommand", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
143
203
|
name: string;
|
|
144
204
|
};
|
|
145
|
-
'require-boundary-schema':
|
|
205
|
+
'require-boundary-schema': _typescript_eslint_utils_ts_eslint.RuleModule<"missingSchema", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
146
206
|
name: string;
|
|
147
207
|
};
|
|
148
208
|
};
|
|
@@ -155,7 +215,10 @@ export declare const configs: {
|
|
|
155
215
|
'@harness-engineering/no-forbidden-imports': string;
|
|
156
216
|
'@harness-engineering/require-boundary-schema': string;
|
|
157
217
|
'@harness-engineering/enforce-doc-exports': string;
|
|
218
|
+
'@harness-engineering/no-unix-shell-command': string;
|
|
219
|
+
'@harness-engineering/no-hardcoded-path-separator': string;
|
|
158
220
|
};
|
|
159
221
|
};
|
|
160
222
|
};
|
|
161
|
-
|
|
223
|
+
|
|
224
|
+
export { configs, plugin as default, rules };
|