immosquare-cleaner 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/LICENSE +201 -0
  4. data/node_modules/@eslint/config-array/README.md +340 -0
  5. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1260 -0
  6. data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +146 -0
  7. data/node_modules/@eslint/config-array/dist/cjs/types.ts +24 -0
  8. data/node_modules/@eslint/config-array/dist/esm/index.d.ts +146 -0
  9. data/node_modules/@eslint/config-array/dist/esm/index.js +1258 -0
  10. data/node_modules/@eslint/config-array/dist/esm/types.d.ts +19 -0
  11. data/node_modules/@eslint/config-array/dist/esm/types.ts +24 -0
  12. data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +15 -0
  13. data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +230 -0
  14. data/node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js +947 -0
  15. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
  16. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
  17. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
  18. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
  19. data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +33 -0
  20. data/node_modules/@eslint/config-array/package.json +60 -0
  21. data/node_modules/@eslint/js/package.json +1 -1
  22. data/node_modules/@eslint/object-schema/LICENSE +201 -0
  23. data/node_modules/@eslint/object-schema/README.md +224 -0
  24. data/node_modules/@eslint/object-schema/dist/cjs/index.cjs +455 -0
  25. data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +123 -0
  26. data/node_modules/@eslint/object-schema/dist/cjs/types.ts +55 -0
  27. data/node_modules/@eslint/object-schema/dist/esm/index.d.ts +123 -0
  28. data/node_modules/@eslint/object-schema/dist/esm/index.js +452 -0
  29. data/node_modules/@eslint/object-schema/dist/esm/types.d.ts +40 -0
  30. data/node_modules/@eslint/object-schema/dist/esm/types.ts +55 -0
  31. data/node_modules/@eslint/object-schema/package.json +56 -0
  32. data/node_modules/eslint/lib/cli.js +2 -2
  33. data/node_modules/eslint/lib/config/flat-config-array.js +1 -1
  34. data/node_modules/eslint/lib/eslint/eslint-helpers.js +7 -7
  35. data/node_modules/eslint/lib/eslint/eslint.js +1 -10
  36. data/node_modules/eslint/lib/rule-tester/rule-tester.js +1 -1
  37. data/node_modules/eslint/lib/rules/func-style.js +4 -4
  38. data/node_modules/eslint/lib/rules/no-constructor-return.js +1 -1
  39. data/node_modules/eslint/lib/rules/no-loop-func.js +161 -129
  40. data/node_modules/eslint/package.json +3 -3
  41. data/node_modules/prettier/LICENSE +56 -535
  42. data/node_modules/prettier/bin/prettier.cjs +4 -8
  43. data/node_modules/prettier/doc.js +20 -29
  44. data/node_modules/prettier/doc.mjs +20 -29
  45. data/node_modules/prettier/index.cjs +1 -1
  46. data/node_modules/prettier/index.d.ts +4 -2
  47. data/node_modules/prettier/index.mjs +3109 -4509
  48. data/node_modules/prettier/internal/cli.mjs +339 -3544
  49. data/node_modules/prettier/package.json +1 -1
  50. data/node_modules/prettier/plugins/acorn.js +11 -11
  51. data/node_modules/prettier/plugins/acorn.mjs +11 -11
  52. data/node_modules/prettier/plugins/angular.js +1 -1
  53. data/node_modules/prettier/plugins/angular.mjs +1 -1
  54. data/node_modules/prettier/plugins/babel.js +11 -11
  55. data/node_modules/prettier/plugins/babel.mjs +11 -11
  56. data/node_modules/prettier/plugins/estree.js +28 -28
  57. data/node_modules/prettier/plugins/estree.mjs +28 -28
  58. data/node_modules/prettier/plugins/flow.js +16 -17
  59. data/node_modules/prettier/plugins/flow.mjs +16 -17
  60. data/node_modules/prettier/plugins/glimmer.js +22 -22
  61. data/node_modules/prettier/plugins/glimmer.mjs +22 -22
  62. data/node_modules/prettier/plugins/graphql.js +4 -4
  63. data/node_modules/prettier/plugins/graphql.mjs +4 -4
  64. data/node_modules/prettier/plugins/html.js +15 -15
  65. data/node_modules/prettier/plugins/html.mjs +15 -15
  66. data/node_modules/prettier/plugins/markdown.js +42 -42
  67. data/node_modules/prettier/plugins/markdown.mjs +42 -42
  68. data/node_modules/prettier/plugins/meriyah.js +5 -5
  69. data/node_modules/prettier/plugins/meriyah.mjs +5 -5
  70. data/node_modules/prettier/plugins/postcss.js +26 -26
  71. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  72. data/node_modules/prettier/plugins/typescript.js +20 -20
  73. data/node_modules/prettier/plugins/typescript.mjs +20 -20
  74. data/node_modules/prettier/plugins/yaml.js +32 -32
  75. data/node_modules/prettier/plugins/yaml.mjs +32 -32
  76. data/node_modules/prettier/standalone.js +26 -26
  77. data/node_modules/prettier/standalone.mjs +26 -26
  78. data/package.json +3 -3
  79. metadata +30 -2
@@ -0,0 +1,146 @@
1
+ export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition;
2
+ export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition;
3
+ export type ConfigObject = import("./types.ts").ConfigObject;
4
+ export type IMinimatchStatic = import("minimatch").IMinimatchStatic;
5
+ export type IMinimatch = import("minimatch").IMinimatch;
6
+ export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema;
7
+ /**
8
+ * Represents an array of config objects and provides method for working with
9
+ * those config objects.
10
+ */
11
+ export class ConfigArray extends Array<any> {
12
+ /**
13
+ * Creates a new instance of ConfigArray.
14
+ * @param {Iterable|Function|Object} configs An iterable yielding config
15
+ * objects, or a config function, or a config object.
16
+ * @param {Object} options The options for the ConfigArray.
17
+ * @param {string} [options.basePath=""] The path of the config file
18
+ * @param {boolean} [options.normalized=false] Flag indicating if the
19
+ * configs have already been normalized.
20
+ * @param {Object} [options.schema] The additional schema
21
+ * definitions to use for the ConfigArray schema.
22
+ * @param {Array<string>} [options.extraConfigTypes] List of config types supported.
23
+ */
24
+ constructor(configs: Iterable<any> | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: {
25
+ basePath?: string;
26
+ normalized?: boolean;
27
+ schema?: any;
28
+ extraConfigTypes?: Array<string>;
29
+ });
30
+ /**
31
+ * The path of the config file that this array was loaded from.
32
+ * This is used to calculate filename matches.
33
+ * @property basePath
34
+ * @type {string}
35
+ */
36
+ basePath: string;
37
+ /**
38
+ * The supported config types.
39
+ * @type {Array<string>}
40
+ */
41
+ extraConfigTypes: Array<string>;
42
+ /**
43
+ * Returns the `files` globs from every config object in the array.
44
+ * This can be used to determine which files will be matched by a
45
+ * config array or to use as a glob pattern when no patterns are provided
46
+ * for a command line interface.
47
+ * @returns {Array<string|Function>} An array of matchers.
48
+ */
49
+ get files(): (string | Function)[];
50
+ /**
51
+ * Returns ignore matchers that should always be ignored regardless of
52
+ * the matching `files` fields in any configs. This is necessary to mimic
53
+ * the behavior of things like .gitignore and .eslintignore, allowing a
54
+ * globbing operation to be faster.
55
+ * @returns {string[]} An array of string patterns and functions to be ignored.
56
+ */
57
+ get ignores(): string[];
58
+ /**
59
+ * Indicates if the config array has been normalized.
60
+ * @returns {boolean} True if the config array is normalized, false if not.
61
+ */
62
+ isNormalized(): boolean;
63
+ /**
64
+ * Normalizes a config array by flattening embedded arrays and executing
65
+ * config functions.
66
+ * @param {Object} [context] The context object for config functions.
67
+ * @returns {Promise<ConfigArray>} The current ConfigArray instance.
68
+ */
69
+ normalize(context?: any): Promise<ConfigArray>;
70
+ /**
71
+ * Normalizes a config array by flattening embedded arrays and executing
72
+ * config functions.
73
+ * @param {Object} [context] The context object for config functions.
74
+ * @returns {ConfigArray} The current ConfigArray instance.
75
+ */
76
+ normalizeSync(context?: any): ConfigArray;
77
+ /**
78
+ * Determines if a given file path explicitly matches a `files` entry
79
+ * and also doesn't match an `ignores` entry. Configs that don't have
80
+ * a `files` property are not considered an explicit match.
81
+ * @param {string} filePath The complete path of a file to check.
82
+ * @returns {boolean} True if the file path matches a `files` entry
83
+ * or false if not.
84
+ */
85
+ isExplicitMatch(filePath: string): boolean;
86
+ /**
87
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
88
+ * @param {string} filePath The complete path of a file to get a config for.
89
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
90
+ * An object with an optional property `config` and property `status`.
91
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
92
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
93
+ */
94
+ getConfigWithStatus(filePath: string): {
95
+ config?: any;
96
+ status: "ignored" | "external" | "unconfigured" | "matched";
97
+ };
98
+ /**
99
+ * Returns the config object for a given file path.
100
+ * @param {string} filePath The complete path of a file to get a config for.
101
+ * @returns {Object|undefined} The config object for this file or `undefined`.
102
+ */
103
+ getConfig(filePath: string): any | undefined;
104
+ /**
105
+ * Determines whether a file has a config or why it doesn't.
106
+ * @param {string} filePath The complete path of the file to check.
107
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
108
+ * * `"ignored"`: the file is ignored
109
+ * * `"external"`: the file is outside the base path
110
+ * * `"unconfigured"`: the file is not matched by any config
111
+ * * `"matched"`: the file has a matching config
112
+ */
113
+ getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched";
114
+ /**
115
+ * Determines if the given filepath is ignored based on the configs.
116
+ * @param {string} filePath The complete path of a file to check.
117
+ * @returns {boolean} True if the path is ignored, false if not.
118
+ * @deprecated Use `isFileIgnored` instead.
119
+ */
120
+ isIgnored(filePath: string): boolean;
121
+ /**
122
+ * Determines if the given filepath is ignored based on the configs.
123
+ * @param {string} filePath The complete path of a file to check.
124
+ * @returns {boolean} True if the path is ignored, false if not.
125
+ */
126
+ isFileIgnored(filePath: string): boolean;
127
+ /**
128
+ * Determines if the given directory is ignored based on the configs.
129
+ * This checks only default `ignores` that don't have `files` in the
130
+ * same config. A pattern such as `/foo` be considered to ignore the directory
131
+ * while a pattern such as `/foo/**` is not considered to ignore the
132
+ * directory because it is matching files.
133
+ * @param {string} directoryPath The complete path of a directory to check.
134
+ * @returns {boolean} True if the directory is ignored, false if not. Will
135
+ * return true for any directory that is not inside of `basePath`.
136
+ * @throws {Error} When the `ConfigArray` is not normalized.
137
+ */
138
+ isDirectoryIgnored(directoryPath: string): boolean;
139
+ }
140
+ export namespace ConfigArraySymbol {
141
+ let isNormalized: symbol;
142
+ let configCache: symbol;
143
+ let schema: symbol;
144
+ let finalizeConfig: symbol;
145
+ let preprocessConfig: symbol;
146
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @fileoverview Types for the config-array package.
3
+ * @author Nicholas C. Zakas
4
+ */
5
+
6
+ export interface ConfigObject {
7
+ /**
8
+ * The files to include.
9
+ */
10
+ files?: string[];
11
+
12
+ /**
13
+ * The files to exclude.
14
+ */
15
+ ignores?: string[];
16
+
17
+ /**
18
+ * The name of the config object.
19
+ */
20
+ name?: string;
21
+
22
+ // may also have any number of other properties
23
+ [key: string]: unknown;
24
+ }
@@ -0,0 +1,146 @@
1
+ export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition;
2
+ export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition;
3
+ export type ConfigObject = import("./types.ts").ConfigObject;
4
+ export type IMinimatchStatic = import("minimatch").IMinimatchStatic;
5
+ export type IMinimatch = import("minimatch").IMinimatch;
6
+ export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema;
7
+ /**
8
+ * Represents an array of config objects and provides method for working with
9
+ * those config objects.
10
+ */
11
+ export class ConfigArray extends Array<any> {
12
+ /**
13
+ * Creates a new instance of ConfigArray.
14
+ * @param {Iterable|Function|Object} configs An iterable yielding config
15
+ * objects, or a config function, or a config object.
16
+ * @param {Object} options The options for the ConfigArray.
17
+ * @param {string} [options.basePath=""] The path of the config file
18
+ * @param {boolean} [options.normalized=false] Flag indicating if the
19
+ * configs have already been normalized.
20
+ * @param {Object} [options.schema] The additional schema
21
+ * definitions to use for the ConfigArray schema.
22
+ * @param {Array<string>} [options.extraConfigTypes] List of config types supported.
23
+ */
24
+ constructor(configs: Iterable<any> | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: {
25
+ basePath?: string;
26
+ normalized?: boolean;
27
+ schema?: any;
28
+ extraConfigTypes?: Array<string>;
29
+ });
30
+ /**
31
+ * The path of the config file that this array was loaded from.
32
+ * This is used to calculate filename matches.
33
+ * @property basePath
34
+ * @type {string}
35
+ */
36
+ basePath: string;
37
+ /**
38
+ * The supported config types.
39
+ * @type {Array<string>}
40
+ */
41
+ extraConfigTypes: Array<string>;
42
+ /**
43
+ * Returns the `files` globs from every config object in the array.
44
+ * This can be used to determine which files will be matched by a
45
+ * config array or to use as a glob pattern when no patterns are provided
46
+ * for a command line interface.
47
+ * @returns {Array<string|Function>} An array of matchers.
48
+ */
49
+ get files(): (string | Function)[];
50
+ /**
51
+ * Returns ignore matchers that should always be ignored regardless of
52
+ * the matching `files` fields in any configs. This is necessary to mimic
53
+ * the behavior of things like .gitignore and .eslintignore, allowing a
54
+ * globbing operation to be faster.
55
+ * @returns {string[]} An array of string patterns and functions to be ignored.
56
+ */
57
+ get ignores(): string[];
58
+ /**
59
+ * Indicates if the config array has been normalized.
60
+ * @returns {boolean} True if the config array is normalized, false if not.
61
+ */
62
+ isNormalized(): boolean;
63
+ /**
64
+ * Normalizes a config array by flattening embedded arrays and executing
65
+ * config functions.
66
+ * @param {Object} [context] The context object for config functions.
67
+ * @returns {Promise<ConfigArray>} The current ConfigArray instance.
68
+ */
69
+ normalize(context?: any): Promise<ConfigArray>;
70
+ /**
71
+ * Normalizes a config array by flattening embedded arrays and executing
72
+ * config functions.
73
+ * @param {Object} [context] The context object for config functions.
74
+ * @returns {ConfigArray} The current ConfigArray instance.
75
+ */
76
+ normalizeSync(context?: any): ConfigArray;
77
+ /**
78
+ * Determines if a given file path explicitly matches a `files` entry
79
+ * and also doesn't match an `ignores` entry. Configs that don't have
80
+ * a `files` property are not considered an explicit match.
81
+ * @param {string} filePath The complete path of a file to check.
82
+ * @returns {boolean} True if the file path matches a `files` entry
83
+ * or false if not.
84
+ */
85
+ isExplicitMatch(filePath: string): boolean;
86
+ /**
87
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
88
+ * @param {string} filePath The complete path of a file to get a config for.
89
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
90
+ * An object with an optional property `config` and property `status`.
91
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
92
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
93
+ */
94
+ getConfigWithStatus(filePath: string): {
95
+ config?: any;
96
+ status: "ignored" | "external" | "unconfigured" | "matched";
97
+ };
98
+ /**
99
+ * Returns the config object for a given file path.
100
+ * @param {string} filePath The complete path of a file to get a config for.
101
+ * @returns {Object|undefined} The config object for this file or `undefined`.
102
+ */
103
+ getConfig(filePath: string): any | undefined;
104
+ /**
105
+ * Determines whether a file has a config or why it doesn't.
106
+ * @param {string} filePath The complete path of the file to check.
107
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
108
+ * * `"ignored"`: the file is ignored
109
+ * * `"external"`: the file is outside the base path
110
+ * * `"unconfigured"`: the file is not matched by any config
111
+ * * `"matched"`: the file has a matching config
112
+ */
113
+ getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched";
114
+ /**
115
+ * Determines if the given filepath is ignored based on the configs.
116
+ * @param {string} filePath The complete path of a file to check.
117
+ * @returns {boolean} True if the path is ignored, false if not.
118
+ * @deprecated Use `isFileIgnored` instead.
119
+ */
120
+ isIgnored(filePath: string): boolean;
121
+ /**
122
+ * Determines if the given filepath is ignored based on the configs.
123
+ * @param {string} filePath The complete path of a file to check.
124
+ * @returns {boolean} True if the path is ignored, false if not.
125
+ */
126
+ isFileIgnored(filePath: string): boolean;
127
+ /**
128
+ * Determines if the given directory is ignored based on the configs.
129
+ * This checks only default `ignores` that don't have `files` in the
130
+ * same config. A pattern such as `/foo` be considered to ignore the directory
131
+ * while a pattern such as `/foo/**` is not considered to ignore the
132
+ * directory because it is matching files.
133
+ * @param {string} directoryPath The complete path of a directory to check.
134
+ * @returns {boolean} True if the directory is ignored, false if not. Will
135
+ * return true for any directory that is not inside of `basePath`.
136
+ * @throws {Error} When the `ConfigArray` is not normalized.
137
+ */
138
+ isDirectoryIgnored(directoryPath: string): boolean;
139
+ }
140
+ export namespace ConfigArraySymbol {
141
+ let isNormalized: symbol;
142
+ let configCache: symbol;
143
+ let schema: symbol;
144
+ let finalizeConfig: symbol;
145
+ let preprocessConfig: symbol;
146
+ }