immosquare-cleaner 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/linters/rubocop-3.3.4.yml +2 -0
- data/linters/rubocop.yml +2 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/LICENSE-MIT +21 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/README.md +412 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/index.d.ts +61 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/index.js +618 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/legacy.js +539 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/package.json +73 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint/plugin-kit/LICENSE +201 -0
- data/node_modules/@eslint/plugin-kit/README.md +224 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs +555 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts +239 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/types.ts +7 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts +239 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/index.js +551 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts +6 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/types.ts +7 -0
- data/node_modules/@eslint/plugin-kit/package.json +62 -0
- data/node_modules/eslint/README.md +2 -2
- data/node_modules/eslint/lib/config/config.js +278 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +3 -204
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +29 -94
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +17 -28
- data/node_modules/eslint/lib/linter/file-context.js +134 -0
- data/node_modules/eslint/lib/linter/linter.js +37 -42
- data/node_modules/eslint/lib/rules/id-length.js +1 -0
- data/node_modules/eslint/lib/rules/no-invalid-regexp.js +34 -18
- data/node_modules/eslint/lib/rules/require-unicode-regexp.js +95 -14
- data/node_modules/eslint/lib/rules/utils/regular-expressions.js +11 -3
- data/node_modules/eslint/lib/types/index.d.ts +1635 -0
- data/node_modules/eslint/lib/types/rules/best-practices.d.ts +1075 -0
- data/node_modules/eslint/lib/types/rules/deprecated.d.ts +294 -0
- data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +561 -0
- data/node_modules/eslint/lib/types/rules/index.d.ts +50 -0
- data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +160 -0
- data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +598 -0
- data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +38 -0
- data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +1932 -0
- data/node_modules/eslint/lib/types/rules/variables.d.ts +221 -0
- data/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts +85 -0
- data/node_modules/eslint/package.json +20 -8
- data/node_modules/ignore/index.d.ts +1 -1
- data/node_modules/ignore/index.js +25 -7
- data/node_modules/ignore/legacy.js +34 -14
- data/node_modules/ignore/package.json +12 -11
- data/node_modules/npm-check-updates/build/index.js +282 -282
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +1 -1
- data/package.json +3 -3
- metadata +31 -4
- data/linters/rubocop-2.7.6.yml +0 -88
- data/node_modules/eslint/lib/linter/config-comment-parser.js +0 -169
@@ -0,0 +1,239 @@
|
|
1
|
+
export type VisitTraversalStep = import("@eslint/core").VisitTraversalStep;
|
2
|
+
export type CallTraversalStep = import("@eslint/core").CallTraversalStep;
|
3
|
+
export type TextSourceCode = import("@eslint/core").TextSourceCode;
|
4
|
+
export type TraversalStep = import("@eslint/core").TraversalStep;
|
5
|
+
export type SourceLocation = import("@eslint/core").SourceLocation;
|
6
|
+
export type SourceLocationWithOffset = import("@eslint/core").SourceLocationWithOffset;
|
7
|
+
export type SourceRange = import("@eslint/core").SourceRange;
|
8
|
+
export type RuleConfig = import("@eslint/core").RuleConfig;
|
9
|
+
export type RulesConfig = import("@eslint/core").RulesConfig;
|
10
|
+
export type StringConfig = import("./types.ts").StringConfig;
|
11
|
+
export type BooleanConfig = import("./types.ts").BooleanConfig;
|
12
|
+
/**
|
13
|
+
* A class to represent a step in the traversal process where a
|
14
|
+
* method is called.
|
15
|
+
* @implements {CallTraversalStep}
|
16
|
+
*/
|
17
|
+
export class CallMethodStep implements CallTraversalStep {
|
18
|
+
/**
|
19
|
+
* Creates a new instance.
|
20
|
+
* @param {Object} options The options for the step.
|
21
|
+
* @param {string} options.target The target of the step.
|
22
|
+
* @param {Array<any>} options.args The arguments of the step.
|
23
|
+
*/
|
24
|
+
constructor({ target, args }: {
|
25
|
+
target: string;
|
26
|
+
args: Array<any>;
|
27
|
+
});
|
28
|
+
/**
|
29
|
+
* The type of the step.
|
30
|
+
* @type {"call"}
|
31
|
+
* @readonly
|
32
|
+
*/
|
33
|
+
readonly type: "call";
|
34
|
+
/**
|
35
|
+
* The kind of the step. Represents the same data as the `type` property
|
36
|
+
* but it's a number for performance.
|
37
|
+
* @type {2}
|
38
|
+
* @readonly
|
39
|
+
*/
|
40
|
+
readonly kind: 2;
|
41
|
+
/**
|
42
|
+
* The name of the method to call.
|
43
|
+
* @type {string}
|
44
|
+
*/
|
45
|
+
target: string;
|
46
|
+
/**
|
47
|
+
* The arguments to pass to the method.
|
48
|
+
* @type {Array<any>}
|
49
|
+
*/
|
50
|
+
args: Array<any>;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Object to parse ESLint configuration comments.
|
54
|
+
*/
|
55
|
+
export class ConfigCommentParser {
|
56
|
+
/**
|
57
|
+
* Parses a list of "name:string_value" or/and "name" options divided by comma or
|
58
|
+
* whitespace. Used for "global" comments.
|
59
|
+
* @param {string} string The string to parse.
|
60
|
+
* @returns {StringConfig} Result map object of names and string values, or null values if no value was provided.
|
61
|
+
*/
|
62
|
+
parseStringConfig(string: string): StringConfig;
|
63
|
+
/**
|
64
|
+
* Parses a JSON-like config.
|
65
|
+
* @param {string} string The string to parse.
|
66
|
+
* @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object
|
67
|
+
*/
|
68
|
+
parseJSONLikeConfig(string: string): ({
|
69
|
+
ok: true;
|
70
|
+
config: RulesConfig;
|
71
|
+
} | {
|
72
|
+
ok: false;
|
73
|
+
error: {
|
74
|
+
message: string;
|
75
|
+
};
|
76
|
+
});
|
77
|
+
/**
|
78
|
+
* Parses a config of values separated by comma.
|
79
|
+
* @param {string} string The string to parse.
|
80
|
+
* @returns {BooleanConfig} Result map of values and true values
|
81
|
+
*/
|
82
|
+
parseListConfig(string: string): BooleanConfig;
|
83
|
+
/**
|
84
|
+
* Parses a directive comment into directive text and value.
|
85
|
+
* @param {string} string The string with the directive to be parsed.
|
86
|
+
* @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid.
|
87
|
+
*/
|
88
|
+
parseDirective(string: string): DirectiveComment | undefined;
|
89
|
+
#private;
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Source Code Base Object
|
93
|
+
* @implements {TextSourceCode}
|
94
|
+
*/
|
95
|
+
export class TextSourceCodeBase implements TextSourceCode {
|
96
|
+
/**
|
97
|
+
* Creates a new instance.
|
98
|
+
* @param {Object} options The options for the instance.
|
99
|
+
* @param {string} options.text The source code text.
|
100
|
+
* @param {object} options.ast The root AST node.
|
101
|
+
* @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code.
|
102
|
+
*/
|
103
|
+
constructor({ text, ast, lineEndingPattern }: {
|
104
|
+
text: string;
|
105
|
+
ast: object;
|
106
|
+
lineEndingPattern?: RegExp;
|
107
|
+
});
|
108
|
+
/**
|
109
|
+
* The AST of the source code.
|
110
|
+
* @type {object}
|
111
|
+
*/
|
112
|
+
ast: object;
|
113
|
+
/**
|
114
|
+
* The text of the source code.
|
115
|
+
* @type {string}
|
116
|
+
*/
|
117
|
+
text: string;
|
118
|
+
/**
|
119
|
+
* Returns the loc information for the given node or token.
|
120
|
+
* @param {object} nodeOrToken The node or token to get the loc information for.
|
121
|
+
* @returns {SourceLocation} The loc information for the node or token.
|
122
|
+
*/
|
123
|
+
getLoc(nodeOrToken: object): SourceLocation;
|
124
|
+
/**
|
125
|
+
* Returns the range information for the given node or token.
|
126
|
+
* @param {object} nodeOrToken The node or token to get the range information for.
|
127
|
+
* @returns {SourceRange} The range information for the node or token.
|
128
|
+
*/
|
129
|
+
getRange(nodeOrToken: object): SourceRange;
|
130
|
+
/**
|
131
|
+
* Returns the parent of the given node.
|
132
|
+
* @param {object} node The node to get the parent of.
|
133
|
+
* @returns {object|undefined} The parent of the node.
|
134
|
+
*/
|
135
|
+
getParent(node: object): object | undefined;
|
136
|
+
/**
|
137
|
+
* Gets all the ancestors of a given node
|
138
|
+
* @param {object} node The node
|
139
|
+
* @returns {Array<object>} All the ancestor nodes in the AST, not including the provided node, starting
|
140
|
+
* from the root node at index 0 and going inwards to the parent node.
|
141
|
+
* @throws {TypeError} When `node` is missing.
|
142
|
+
*/
|
143
|
+
getAncestors(node: object): Array<object>;
|
144
|
+
/**
|
145
|
+
* Gets the source code for the given node.
|
146
|
+
* @param {object} [node] The AST node to get the text for.
|
147
|
+
* @param {number} [beforeCount] The number of characters before the node to retrieve.
|
148
|
+
* @param {number} [afterCount] The number of characters after the node to retrieve.
|
149
|
+
* @returns {string} The text representing the AST node.
|
150
|
+
* @public
|
151
|
+
*/
|
152
|
+
public getText(node?: object, beforeCount?: number, afterCount?: number): string;
|
153
|
+
/**
|
154
|
+
* Gets the entire source text split into an array of lines.
|
155
|
+
* @returns {Array<string>} The source text as an array of lines.
|
156
|
+
* @public
|
157
|
+
*/
|
158
|
+
public get lines(): string[];
|
159
|
+
/**
|
160
|
+
* Traverse the source code and return the steps that were taken.
|
161
|
+
* @returns {Iterable<TraversalStep>} The steps that were taken while traversing the source code.
|
162
|
+
*/
|
163
|
+
traverse(): Iterable<TraversalStep>;
|
164
|
+
#private;
|
165
|
+
}
|
166
|
+
/**
|
167
|
+
* A class to represent a step in the traversal process where a node is visited.
|
168
|
+
* @implements {VisitTraversalStep}
|
169
|
+
*/
|
170
|
+
export class VisitNodeStep implements VisitTraversalStep {
|
171
|
+
/**
|
172
|
+
* Creates a new instance.
|
173
|
+
* @param {Object} options The options for the step.
|
174
|
+
* @param {object} options.target The target of the step.
|
175
|
+
* @param {1|2} options.phase The phase of the step.
|
176
|
+
* @param {Array<any>} options.args The arguments of the step.
|
177
|
+
*/
|
178
|
+
constructor({ target, phase, args }: {
|
179
|
+
target: object;
|
180
|
+
phase: 1 | 2;
|
181
|
+
args: Array<any>;
|
182
|
+
});
|
183
|
+
/**
|
184
|
+
* The type of the step.
|
185
|
+
* @type {"visit"}
|
186
|
+
* @readonly
|
187
|
+
*/
|
188
|
+
readonly type: "visit";
|
189
|
+
/**
|
190
|
+
* The kind of the step. Represents the same data as the `type` property
|
191
|
+
* but it's a number for performance.
|
192
|
+
* @type {1}
|
193
|
+
* @readonly
|
194
|
+
*/
|
195
|
+
readonly kind: 1;
|
196
|
+
/**
|
197
|
+
* The target of the step.
|
198
|
+
* @type {object}
|
199
|
+
*/
|
200
|
+
target: object;
|
201
|
+
/**
|
202
|
+
* The phase of the step.
|
203
|
+
* @type {1|2}
|
204
|
+
*/
|
205
|
+
phase: 1 | 2;
|
206
|
+
/**
|
207
|
+
* The arguments of the step.
|
208
|
+
* @type {Array<any>}
|
209
|
+
*/
|
210
|
+
args: Array<any>;
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* Represents a directive comment.
|
214
|
+
*/
|
215
|
+
declare class DirectiveComment {
|
216
|
+
/**
|
217
|
+
* Creates a new directive comment.
|
218
|
+
* @param {string} label The label of the directive.
|
219
|
+
* @param {string} value The value of the directive.
|
220
|
+
* @param {string} justification The justification of the directive.
|
221
|
+
*/
|
222
|
+
constructor(label: string, value: string, justification: string);
|
223
|
+
/**
|
224
|
+
* The label of the directive, such as "eslint", "eslint-disable", etc.
|
225
|
+
* @type {string}
|
226
|
+
*/
|
227
|
+
label: string;
|
228
|
+
/**
|
229
|
+
* The value of the directive (the string after the label).
|
230
|
+
* @type {string}
|
231
|
+
*/
|
232
|
+
value: string;
|
233
|
+
/**
|
234
|
+
* The justification of the directive (the string after the --).
|
235
|
+
* @type {string}
|
236
|
+
*/
|
237
|
+
justification: string;
|
238
|
+
}
|
239
|
+
export {};
|
@@ -0,0 +1,239 @@
|
|
1
|
+
export type VisitTraversalStep = import("@eslint/core").VisitTraversalStep;
|
2
|
+
export type CallTraversalStep = import("@eslint/core").CallTraversalStep;
|
3
|
+
export type TextSourceCode = import("@eslint/core").TextSourceCode;
|
4
|
+
export type TraversalStep = import("@eslint/core").TraversalStep;
|
5
|
+
export type SourceLocation = import("@eslint/core").SourceLocation;
|
6
|
+
export type SourceLocationWithOffset = import("@eslint/core").SourceLocationWithOffset;
|
7
|
+
export type SourceRange = import("@eslint/core").SourceRange;
|
8
|
+
export type RuleConfig = import("@eslint/core").RuleConfig;
|
9
|
+
export type RulesConfig = import("@eslint/core").RulesConfig;
|
10
|
+
export type StringConfig = import("./types.ts").StringConfig;
|
11
|
+
export type BooleanConfig = import("./types.ts").BooleanConfig;
|
12
|
+
/**
|
13
|
+
* A class to represent a step in the traversal process where a
|
14
|
+
* method is called.
|
15
|
+
* @implements {CallTraversalStep}
|
16
|
+
*/
|
17
|
+
export class CallMethodStep implements CallTraversalStep {
|
18
|
+
/**
|
19
|
+
* Creates a new instance.
|
20
|
+
* @param {Object} options The options for the step.
|
21
|
+
* @param {string} options.target The target of the step.
|
22
|
+
* @param {Array<any>} options.args The arguments of the step.
|
23
|
+
*/
|
24
|
+
constructor({ target, args }: {
|
25
|
+
target: string;
|
26
|
+
args: Array<any>;
|
27
|
+
});
|
28
|
+
/**
|
29
|
+
* The type of the step.
|
30
|
+
* @type {"call"}
|
31
|
+
* @readonly
|
32
|
+
*/
|
33
|
+
readonly type: "call";
|
34
|
+
/**
|
35
|
+
* The kind of the step. Represents the same data as the `type` property
|
36
|
+
* but it's a number for performance.
|
37
|
+
* @type {2}
|
38
|
+
* @readonly
|
39
|
+
*/
|
40
|
+
readonly kind: 2;
|
41
|
+
/**
|
42
|
+
* The name of the method to call.
|
43
|
+
* @type {string}
|
44
|
+
*/
|
45
|
+
target: string;
|
46
|
+
/**
|
47
|
+
* The arguments to pass to the method.
|
48
|
+
* @type {Array<any>}
|
49
|
+
*/
|
50
|
+
args: Array<any>;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Object to parse ESLint configuration comments.
|
54
|
+
*/
|
55
|
+
export class ConfigCommentParser {
|
56
|
+
/**
|
57
|
+
* Parses a list of "name:string_value" or/and "name" options divided by comma or
|
58
|
+
* whitespace. Used for "global" comments.
|
59
|
+
* @param {string} string The string to parse.
|
60
|
+
* @returns {StringConfig} Result map object of names and string values, or null values if no value was provided.
|
61
|
+
*/
|
62
|
+
parseStringConfig(string: string): StringConfig;
|
63
|
+
/**
|
64
|
+
* Parses a JSON-like config.
|
65
|
+
* @param {string} string The string to parse.
|
66
|
+
* @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object
|
67
|
+
*/
|
68
|
+
parseJSONLikeConfig(string: string): ({
|
69
|
+
ok: true;
|
70
|
+
config: RulesConfig;
|
71
|
+
} | {
|
72
|
+
ok: false;
|
73
|
+
error: {
|
74
|
+
message: string;
|
75
|
+
};
|
76
|
+
});
|
77
|
+
/**
|
78
|
+
* Parses a config of values separated by comma.
|
79
|
+
* @param {string} string The string to parse.
|
80
|
+
* @returns {BooleanConfig} Result map of values and true values
|
81
|
+
*/
|
82
|
+
parseListConfig(string: string): BooleanConfig;
|
83
|
+
/**
|
84
|
+
* Parses a directive comment into directive text and value.
|
85
|
+
* @param {string} string The string with the directive to be parsed.
|
86
|
+
* @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid.
|
87
|
+
*/
|
88
|
+
parseDirective(string: string): DirectiveComment | undefined;
|
89
|
+
#private;
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Source Code Base Object
|
93
|
+
* @implements {TextSourceCode}
|
94
|
+
*/
|
95
|
+
export class TextSourceCodeBase implements TextSourceCode {
|
96
|
+
/**
|
97
|
+
* Creates a new instance.
|
98
|
+
* @param {Object} options The options for the instance.
|
99
|
+
* @param {string} options.text The source code text.
|
100
|
+
* @param {object} options.ast The root AST node.
|
101
|
+
* @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code.
|
102
|
+
*/
|
103
|
+
constructor({ text, ast, lineEndingPattern }: {
|
104
|
+
text: string;
|
105
|
+
ast: object;
|
106
|
+
lineEndingPattern?: RegExp;
|
107
|
+
});
|
108
|
+
/**
|
109
|
+
* The AST of the source code.
|
110
|
+
* @type {object}
|
111
|
+
*/
|
112
|
+
ast: object;
|
113
|
+
/**
|
114
|
+
* The text of the source code.
|
115
|
+
* @type {string}
|
116
|
+
*/
|
117
|
+
text: string;
|
118
|
+
/**
|
119
|
+
* Returns the loc information for the given node or token.
|
120
|
+
* @param {object} nodeOrToken The node or token to get the loc information for.
|
121
|
+
* @returns {SourceLocation} The loc information for the node or token.
|
122
|
+
*/
|
123
|
+
getLoc(nodeOrToken: object): SourceLocation;
|
124
|
+
/**
|
125
|
+
* Returns the range information for the given node or token.
|
126
|
+
* @param {object} nodeOrToken The node or token to get the range information for.
|
127
|
+
* @returns {SourceRange} The range information for the node or token.
|
128
|
+
*/
|
129
|
+
getRange(nodeOrToken: object): SourceRange;
|
130
|
+
/**
|
131
|
+
* Returns the parent of the given node.
|
132
|
+
* @param {object} node The node to get the parent of.
|
133
|
+
* @returns {object|undefined} The parent of the node.
|
134
|
+
*/
|
135
|
+
getParent(node: object): object | undefined;
|
136
|
+
/**
|
137
|
+
* Gets all the ancestors of a given node
|
138
|
+
* @param {object} node The node
|
139
|
+
* @returns {Array<object>} All the ancestor nodes in the AST, not including the provided node, starting
|
140
|
+
* from the root node at index 0 and going inwards to the parent node.
|
141
|
+
* @throws {TypeError} When `node` is missing.
|
142
|
+
*/
|
143
|
+
getAncestors(node: object): Array<object>;
|
144
|
+
/**
|
145
|
+
* Gets the source code for the given node.
|
146
|
+
* @param {object} [node] The AST node to get the text for.
|
147
|
+
* @param {number} [beforeCount] The number of characters before the node to retrieve.
|
148
|
+
* @param {number} [afterCount] The number of characters after the node to retrieve.
|
149
|
+
* @returns {string} The text representing the AST node.
|
150
|
+
* @public
|
151
|
+
*/
|
152
|
+
public getText(node?: object, beforeCount?: number, afterCount?: number): string;
|
153
|
+
/**
|
154
|
+
* Gets the entire source text split into an array of lines.
|
155
|
+
* @returns {Array<string>} The source text as an array of lines.
|
156
|
+
* @public
|
157
|
+
*/
|
158
|
+
public get lines(): string[];
|
159
|
+
/**
|
160
|
+
* Traverse the source code and return the steps that were taken.
|
161
|
+
* @returns {Iterable<TraversalStep>} The steps that were taken while traversing the source code.
|
162
|
+
*/
|
163
|
+
traverse(): Iterable<TraversalStep>;
|
164
|
+
#private;
|
165
|
+
}
|
166
|
+
/**
|
167
|
+
* A class to represent a step in the traversal process where a node is visited.
|
168
|
+
* @implements {VisitTraversalStep}
|
169
|
+
*/
|
170
|
+
export class VisitNodeStep implements VisitTraversalStep {
|
171
|
+
/**
|
172
|
+
* Creates a new instance.
|
173
|
+
* @param {Object} options The options for the step.
|
174
|
+
* @param {object} options.target The target of the step.
|
175
|
+
* @param {1|2} options.phase The phase of the step.
|
176
|
+
* @param {Array<any>} options.args The arguments of the step.
|
177
|
+
*/
|
178
|
+
constructor({ target, phase, args }: {
|
179
|
+
target: object;
|
180
|
+
phase: 1 | 2;
|
181
|
+
args: Array<any>;
|
182
|
+
});
|
183
|
+
/**
|
184
|
+
* The type of the step.
|
185
|
+
* @type {"visit"}
|
186
|
+
* @readonly
|
187
|
+
*/
|
188
|
+
readonly type: "visit";
|
189
|
+
/**
|
190
|
+
* The kind of the step. Represents the same data as the `type` property
|
191
|
+
* but it's a number for performance.
|
192
|
+
* @type {1}
|
193
|
+
* @readonly
|
194
|
+
*/
|
195
|
+
readonly kind: 1;
|
196
|
+
/**
|
197
|
+
* The target of the step.
|
198
|
+
* @type {object}
|
199
|
+
*/
|
200
|
+
target: object;
|
201
|
+
/**
|
202
|
+
* The phase of the step.
|
203
|
+
* @type {1|2}
|
204
|
+
*/
|
205
|
+
phase: 1 | 2;
|
206
|
+
/**
|
207
|
+
* The arguments of the step.
|
208
|
+
* @type {Array<any>}
|
209
|
+
*/
|
210
|
+
args: Array<any>;
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* Represents a directive comment.
|
214
|
+
*/
|
215
|
+
declare class DirectiveComment {
|
216
|
+
/**
|
217
|
+
* Creates a new directive comment.
|
218
|
+
* @param {string} label The label of the directive.
|
219
|
+
* @param {string} value The value of the directive.
|
220
|
+
* @param {string} justification The justification of the directive.
|
221
|
+
*/
|
222
|
+
constructor(label: string, value: string, justification: string);
|
223
|
+
/**
|
224
|
+
* The label of the directive, such as "eslint", "eslint-disable", etc.
|
225
|
+
* @type {string}
|
226
|
+
*/
|
227
|
+
label: string;
|
228
|
+
/**
|
229
|
+
* The value of the directive (the string after the label).
|
230
|
+
* @type {string}
|
231
|
+
*/
|
232
|
+
value: string;
|
233
|
+
/**
|
234
|
+
* The justification of the directive (the string after the --).
|
235
|
+
* @type {string}
|
236
|
+
*/
|
237
|
+
justification: string;
|
238
|
+
}
|
239
|
+
export {};
|