immosquare-cleaner 0.1.40 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/README.md +9 -3
  4. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1 -0
  5. data/node_modules/@eslint/config-array/dist/esm/index.js +1 -0
  6. data/node_modules/@eslint/config-array/package.json +2 -2
  7. data/node_modules/@eslint/eslintrc/node_modules/espree/LICENSE +25 -0
  8. data/node_modules/@eslint/eslintrc/node_modules/espree/README.md +244 -0
  9. data/node_modules/@eslint/eslintrc/node_modules/espree/dist/espree.cjs +883 -0
  10. data/node_modules/@eslint/eslintrc/node_modules/espree/espree.js +177 -0
  11. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/espree.js +349 -0
  12. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/features.js +27 -0
  13. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/options.js +123 -0
  14. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/token-translator.js +263 -0
  15. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/version.js +3 -0
  16. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/CHANGELOG.md +880 -0
  17. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/LICENSE +21 -0
  18. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/README.md +283 -0
  19. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/bin/acorn +4 -0
  20. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.mts +857 -0
  21. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.ts +857 -0
  22. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.js +6002 -0
  23. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.mjs +5973 -0
  24. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/bin.js +90 -0
  25. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/package.json +50 -0
  26. data/node_modules/@eslint/eslintrc/node_modules/espree/package.json +86 -0
  27. data/node_modules/@eslint/js/package.json +1 -1
  28. data/node_modules/@eslint-community/regexpp/index.d.ts +19 -5
  29. data/node_modules/@eslint-community/regexpp/index.js +138 -17
  30. data/node_modules/@eslint-community/regexpp/index.js.map +1 -1
  31. data/node_modules/@eslint-community/regexpp/index.mjs +138 -17
  32. data/node_modules/@eslint-community/regexpp/index.mjs.map +1 -1
  33. data/node_modules/@eslint-community/regexpp/package.json +1 -3
  34. data/node_modules/acorn/CHANGELOG.md +24 -0
  35. data/node_modules/acorn/README.md +5 -6
  36. data/node_modules/acorn/dist/acorn.d.mts +8 -9
  37. data/node_modules/acorn/dist/acorn.d.ts +8 -9
  38. data/node_modules/acorn/dist/acorn.js +92 -29
  39. data/node_modules/acorn/dist/acorn.mjs +92 -29
  40. data/node_modules/acorn/package.json +3 -3
  41. data/node_modules/eslint/README.md +7 -8
  42. data/node_modules/eslint/conf/ecma-version.js +1 -1
  43. data/node_modules/eslint/conf/globals.js +6 -1
  44. data/node_modules/eslint/lib/cli.js +23 -2
  45. data/node_modules/eslint/lib/eslint/eslint-helpers.js +5 -0
  46. data/node_modules/eslint/lib/eslint/eslint.js +16 -2
  47. data/node_modules/eslint/lib/eslint/legacy-eslint.js +14 -0
  48. data/node_modules/eslint/lib/languages/js/index.js +10 -5
  49. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +16 -6
  50. data/node_modules/eslint/lib/linter/apply-disable-directives.js +6 -3
  51. data/node_modules/eslint/lib/linter/config-comment-parser.js +3 -16
  52. data/node_modules/eslint/lib/linter/linter.js +194 -149
  53. data/node_modules/eslint/lib/linter/node-event-generator.js +2 -4
  54. data/node_modules/eslint/lib/linter/vfile.js +7 -0
  55. data/node_modules/eslint/lib/options.js +13 -1
  56. data/node_modules/eslint/lib/rules/no-restricted-imports.js +12 -5
  57. data/node_modules/eslint/lib/rules/no-unused-vars.js +34 -32
  58. data/node_modules/eslint/lib/rules/no-useless-backreference.js +81 -31
  59. data/node_modules/eslint/lib/rules/utils/regular-expressions.js +1 -1
  60. data/node_modules/eslint/lib/shared/flags.js +26 -0
  61. data/node_modules/eslint/lib/shared/logging.js +10 -1
  62. data/node_modules/eslint/lib/shared/types.js +1 -1
  63. data/node_modules/eslint/package.json +9 -13
  64. data/node_modules/eslint-scope/dist/eslint-scope.cjs +2 -2
  65. data/node_modules/eslint-scope/lib/referencer.js +1 -1
  66. data/node_modules/eslint-scope/lib/version.js +1 -1
  67. data/node_modules/eslint-scope/package.json +2 -2
  68. data/node_modules/espree/README.md +5 -5
  69. data/node_modules/espree/dist/espree.cjs +62 -6
  70. data/node_modules/espree/espree.js +1 -4
  71. data/node_modules/espree/lib/options.js +3 -2
  72. data/node_modules/espree/lib/token-translator.js +1 -1
  73. data/node_modules/espree/lib/version.js +1 -1
  74. data/node_modules/espree/package.json +7 -7
  75. data/node_modules/js-tokens/CHANGELOG.md +17 -0
  76. data/node_modules/js-tokens/LICENSE +1 -1
  77. data/node_modules/js-tokens/README.md +25 -7
  78. data/node_modules/js-tokens/index.js +3 -3
  79. data/node_modules/js-tokens/package.json +5 -5
  80. data/node_modules/jscodeshift/CHANGELOG.md +5 -0
  81. data/node_modules/jscodeshift/bin/jscodeshift.js +1 -1
  82. data/node_modules/jscodeshift/package.json +1 -2
  83. data/node_modules/jscodeshift/website/index.htm +9 -0
  84. data/node_modules/prettier/LICENSE +35 -34
  85. data/node_modules/prettier/doc.js +2 -2
  86. data/node_modules/prettier/doc.mjs +2 -2
  87. data/node_modules/prettier/index.cjs +8 -8
  88. data/node_modules/prettier/index.d.ts +1 -2
  89. data/node_modules/prettier/index.mjs +636 -704
  90. data/node_modules/prettier/internal/cli.mjs +4 -4
  91. data/node_modules/prettier/package.json +1 -1
  92. data/node_modules/prettier/plugins/acorn.js +14 -12
  93. data/node_modules/prettier/plugins/acorn.mjs +14 -12
  94. data/node_modules/prettier/plugins/angular.js +1 -1
  95. data/node_modules/prettier/plugins/angular.mjs +1 -1
  96. data/node_modules/prettier/plugins/babel.js +10 -11
  97. data/node_modules/prettier/plugins/babel.mjs +10 -11
  98. data/node_modules/prettier/plugins/estree.js +27 -27
  99. data/node_modules/prettier/plugins/estree.mjs +27 -27
  100. data/node_modules/prettier/plugins/flow.js +15 -16
  101. data/node_modules/prettier/plugins/flow.mjs +15 -16
  102. data/node_modules/prettier/plugins/glimmer.js +5 -5
  103. data/node_modules/prettier/plugins/glimmer.mjs +5 -5
  104. data/node_modules/prettier/plugins/graphql.js +8 -8
  105. data/node_modules/prettier/plugins/graphql.mjs +8 -8
  106. data/node_modules/prettier/plugins/html.js +17 -17
  107. data/node_modules/prettier/plugins/html.mjs +17 -17
  108. data/node_modules/prettier/plugins/markdown.js +44 -44
  109. data/node_modules/prettier/plugins/markdown.mjs +44 -44
  110. data/node_modules/prettier/plugins/meriyah.js +4 -5
  111. data/node_modules/prettier/plugins/meriyah.mjs +4 -5
  112. data/node_modules/prettier/plugins/postcss.js +26 -26
  113. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  114. data/node_modules/prettier/plugins/typescript.js +15 -20
  115. data/node_modules/prettier/plugins/typescript.mjs +15 -20
  116. data/node_modules/prettier/plugins/yaml.js +6 -6
  117. data/node_modules/prettier/plugins/yaml.mjs +6 -6
  118. data/node_modules/prettier/standalone.js +31 -30
  119. data/node_modules/prettier/standalone.mjs +28 -27
  120. data/package.json +4 -4
  121. metadata +24 -2
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2012-2022 by various contributors (see AUTHORS)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,283 @@
1
+ # Acorn
2
+
3
+ A tiny, fast JavaScript parser written in JavaScript.
4
+
5
+ ## Community
6
+
7
+ Acorn is open source software released under an
8
+ [MIT license](https://github.com/acornjs/acorn/blob/master/acorn/LICENSE).
9
+
10
+ You are welcome to
11
+ [report bugs](https://github.com/acornjs/acorn/issues) or create pull
12
+ requests on [github](https://github.com/acornjs/acorn).
13
+
14
+ ## Installation
15
+
16
+ The easiest way to install acorn is from [`npm`](https://www.npmjs.com/):
17
+
18
+ ```sh
19
+ npm install acorn
20
+ ```
21
+
22
+ Alternately, you can download the source and build acorn yourself:
23
+
24
+ ```sh
25
+ git clone https://github.com/acornjs/acorn.git
26
+ cd acorn
27
+ npm install
28
+ ```
29
+
30
+ ## Interface
31
+
32
+ **parse**`(input, options)` is the main interface to the library. The
33
+ `input` parameter is a string, `options` must be an object setting
34
+ some of the options listed below. The return value will be an abstract
35
+ syntax tree object as specified by the [ESTree
36
+ spec](https://github.com/estree/estree).
37
+
38
+ ```javascript
39
+ let acorn = require("acorn");
40
+ console.log(acorn.parse("1 + 1", {ecmaVersion: 2020}));
41
+ ```
42
+
43
+ When encountering a syntax error, the parser will raise a
44
+ `SyntaxError` object with a meaningful message. The error object will
45
+ have a `pos` property that indicates the string offset at which the
46
+ error occurred, and a `loc` object that contains a `{line, column}`
47
+ object referring to that same position.
48
+
49
+ Options are provided by in a second argument, which should be an
50
+ object containing any of these fields (only `ecmaVersion` is
51
+ required):
52
+
53
+ - **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
54
+ either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
55
+ 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the
56
+ latest the library supports). This influences support for strict
57
+ mode, the set of reserved words, and support for new syntax
58
+ features.
59
+
60
+ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
61
+ implemented by Acorn. Other proposed new features must be
62
+ implemented through plugins.
63
+
64
+ - **sourceType**: Indicate the mode the code should be parsed in. Can be
65
+ either `"script"` or `"module"`. This influences global strict mode
66
+ and parsing of `import` and `export` declarations.
67
+
68
+ **NOTE**: If set to `"module"`, then static `import` / `export` syntax
69
+ will be valid, even if `ecmaVersion` is less than 6.
70
+
71
+ - **onInsertedSemicolon**: If given a callback, that callback will be
72
+ called whenever a missing semicolon is inserted by the parser. The
73
+ callback will be given the character offset of the point where the
74
+ semicolon is inserted as argument, and if `locations` is on, also a
75
+ `{line, column}` object representing this position.
76
+
77
+ - **onTrailingComma**: Like `onInsertedSemicolon`, but for trailing
78
+ commas.
79
+
80
+ - **allowReserved**: If `false`, using a reserved word will generate
81
+ an error. Defaults to `true` for `ecmaVersion` 3, `false` for higher
82
+ versions. When given the value `"never"`, reserved words and
83
+ keywords can also not be used as property names (as in Internet
84
+ Explorer's old parser).
85
+
86
+ - **allowReturnOutsideFunction**: By default, a return statement at
87
+ the top level raises an error. Set this to `true` to accept such
88
+ code.
89
+
90
+ - **allowImportExportEverywhere**: By default, `import` and `export`
91
+ declarations can only appear at a program's top level. Setting this
92
+ option to `true` allows them anywhere where a statement is allowed,
93
+ and also allows `import.meta` expressions to appear in scripts
94
+ (when `sourceType` is not `"module"`).
95
+
96
+ - **allowAwaitOutsideFunction**: If `false`, `await` expressions can
97
+ only appear inside `async` functions. Defaults to `true` in modules
98
+ for `ecmaVersion` 2022 and later, `false` for lower versions.
99
+ Setting this option to `true` allows to have top-level `await`
100
+ expressions. They are still not allowed in non-`async` functions,
101
+ though.
102
+
103
+ - **allowSuperOutsideMethod**: By default, `super` outside a method
104
+ raises an error. Set this to `true` to accept such code.
105
+
106
+ - **allowHashBang**: When this is enabled, if the code starts with the
107
+ characters `#!` (as in a shellscript), the first line will be
108
+ treated as a comment. Defaults to true when `ecmaVersion` >= 2023.
109
+
110
+ - **checkPrivateFields**: By default, the parser will verify that
111
+ private properties are only used in places where they are valid and
112
+ have been declared. Set this to false to turn such checks off.
113
+
114
+ - **locations**: When `true`, each node has a `loc` object attached
115
+ with `start` and `end` subobjects, each of which contains the
116
+ one-based line and zero-based column numbers in `{line, column}`
117
+ form. Default is `false`.
118
+
119
+ - **onToken**: If a function is passed for this option, each found
120
+ token will be passed in same format as tokens returned from
121
+ `tokenizer().getToken()`.
122
+
123
+ If array is passed, each found token is pushed to it.
124
+
125
+ Note that you are not allowed to call the parser from the
126
+ callback—that will corrupt its internal state.
127
+
128
+ - **onComment**: If a function is passed for this option, whenever a
129
+ comment is encountered the function will be called with the
130
+ following parameters:
131
+
132
+ - `block`: `true` if the comment is a block comment, false if it
133
+ is a line comment.
134
+ - `text`: The content of the comment.
135
+ - `start`: Character offset of the start of the comment.
136
+ - `end`: Character offset of the end of the comment.
137
+
138
+ When the `locations` options is on, the `{line, column}` locations
139
+ of the comment’s start and end are passed as two additional
140
+ parameters.
141
+
142
+ If array is passed for this option, each found comment is pushed
143
+ to it as object in Esprima format:
144
+
145
+ ```javascript
146
+ {
147
+ "type": "Line" | "Block",
148
+ "value": "comment text",
149
+ "start": Number,
150
+ "end": Number,
151
+ // If `locations` option is on:
152
+ "loc": {
153
+ "start": {line: Number, column: Number}
154
+ "end": {line: Number, column: Number}
155
+ },
156
+ // If `ranges` option is on:
157
+ "range": [Number, Number]
158
+ }
159
+ ```
160
+
161
+ Note that you are not allowed to call the parser from the
162
+ callback—that will corrupt its internal state.
163
+
164
+ - **ranges**: Nodes have their start and end characters offsets
165
+ recorded in `start` and `end` properties (directly on the node,
166
+ rather than the `loc` object, which holds line/column data. To also
167
+ add a
168
+ [semi-standardized](https://bugzilla.mozilla.org/show_bug.cgi?id=745678)
169
+ `range` property holding a `[start, end]` array with the same
170
+ numbers, set the `ranges` option to `true`.
171
+
172
+ - **program**: It is possible to parse multiple files into a single
173
+ AST by passing the tree produced by parsing the first file as the
174
+ `program` option in subsequent parses. This will add the toplevel
175
+ forms of the parsed file to the "Program" (top) node of an existing
176
+ parse tree.
177
+
178
+ - **sourceFile**: When the `locations` option is `true`, you can pass
179
+ this option to add a `source` attribute in every node’s `loc`
180
+ object. Note that the contents of this option are not examined or
181
+ processed in any way; you are free to use whatever format you
182
+ choose.
183
+
184
+ - **directSourceFile**: Like `sourceFile`, but a `sourceFile` property
185
+ will be added (regardless of the `location` option) directly to the
186
+ nodes, rather than the `loc` object.
187
+
188
+ - **preserveParens**: If this option is `true`, parenthesized expressions
189
+ are represented by (non-standard) `ParenthesizedExpression` nodes
190
+ that have a single `expression` property containing the expression
191
+ inside parentheses.
192
+
193
+ **parseExpressionAt**`(input, offset, options)` will parse a single
194
+ expression in a string, and return its AST. It will not complain if
195
+ there is more of the string left after the expression.
196
+
197
+ **tokenizer**`(input, options)` returns an object with a `getToken`
198
+ method that can be called repeatedly to get the next token, a `{start,
199
+ end, type, value}` object (with added `loc` property when the
200
+ `locations` option is enabled and `range` property when the `ranges`
201
+ option is enabled). When the token's type is `tokTypes.eof`, you
202
+ should stop calling the method, since it will keep returning that same
203
+ token forever.
204
+
205
+ Note that tokenizing JavaScript without parsing it is, in modern
206
+ versions of the language, not really possible due to the way syntax is
207
+ overloaded in ways that can only be disambiguated by the parse
208
+ context. This package applies a bunch of heuristics to try and do a
209
+ reasonable job, but you are advised to use `parse` with the `onToken`
210
+ option instead of this.
211
+
212
+ In ES6 environment, returned result can be used as any other
213
+ protocol-compliant iterable:
214
+
215
+ ```javascript
216
+ for (let token of acorn.tokenizer(str)) {
217
+ // iterate over the tokens
218
+ }
219
+
220
+ // transform code to array of tokens:
221
+ var tokens = [...acorn.tokenizer(str)];
222
+ ```
223
+
224
+ **tokTypes** holds an object mapping names to the token type objects
225
+ that end up in the `type` properties of tokens.
226
+
227
+ **getLineInfo**`(input, offset)` can be used to get a `{line,
228
+ column}` object for a given program string and offset.
229
+
230
+ ### The `Parser` class
231
+
232
+ Instances of the **`Parser`** class contain all the state and logic
233
+ that drives a parse. It has static methods `parse`,
234
+ `parseExpressionAt`, and `tokenizer` that match the top-level
235
+ functions by the same name.
236
+
237
+ When extending the parser with plugins, you need to call these methods
238
+ on the extended version of the class. To extend a parser with plugins,
239
+ you can use its static `extend` method.
240
+
241
+ ```javascript
242
+ var acorn = require("acorn");
243
+ var jsx = require("acorn-jsx");
244
+ var JSXParser = acorn.Parser.extend(jsx());
245
+ JSXParser.parse("foo(<bar/>)", {ecmaVersion: 2020});
246
+ ```
247
+
248
+ The `extend` method takes any number of plugin values, and returns a
249
+ new `Parser` class that includes the extra parser logic provided by
250
+ the plugins.
251
+
252
+ ## Command line interface
253
+
254
+ The `bin/acorn` utility can be used to parse a file from the command
255
+ line. It accepts as arguments its input file and the following
256
+ options:
257
+
258
+ - `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|--ecma10`: Sets the ECMAScript version
259
+ to parse. Default is version 9.
260
+
261
+ - `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise.
262
+
263
+ - `--locations`: Attaches a "loc" object to each node with "start" and
264
+ "end" subobjects, each of which contains the one-based line and
265
+ zero-based column numbers in `{line, column}` form.
266
+
267
+ - `--allow-hash-bang`: If the code starts with the characters #! (as
268
+ in a shellscript), the first line will be treated as a comment.
269
+
270
+ - `--allow-await-outside-function`: Allows top-level `await` expressions.
271
+ See the `allowAwaitOutsideFunction` option for more information.
272
+
273
+ - `--compact`: No whitespace is used in the AST output.
274
+
275
+ - `--silent`: Do not output the AST, just return the exit status.
276
+
277
+ - `--help`: Print the usage information and quit.
278
+
279
+ The utility spits out the syntax tree as JSON data.
280
+
281
+ ## Existing plugins
282
+
283
+ - [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict"
3
+
4
+ require("../dist/bin.js")