immosquare-cleaner 0.1.63 → 0.1.64

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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/rubocop/cop/custom_cops/style/font_awesome_normalization.rb +104 -0
  5. data/linters/rubocop-3.4.1.yml +3 -1
  6. data/linters/rubocop.yml +4 -0
  7. data/node_modules/@eslint/config-helpers/LICENSE +201 -0
  8. data/node_modules/@eslint/config-helpers/README.md +97 -0
  9. data/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +546 -0
  10. data/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +22 -0
  11. data/node_modules/@eslint/config-helpers/dist/cjs/types.cts +31 -0
  12. data/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +22 -0
  13. data/node_modules/@eslint/config-helpers/dist/esm/index.js +544 -0
  14. data/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +23 -0
  15. data/node_modules/@eslint/config-helpers/dist/esm/types.ts +31 -0
  16. data/node_modules/@eslint/config-helpers/package.json +60 -0
  17. data/node_modules/@eslint/js/package.json +1 -1
  18. data/node_modules/eslint/README.md +6 -4
  19. data/node_modules/eslint/lib/config-api.js +12 -0
  20. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +18 -14
  21. data/node_modules/eslint/lib/rules/no-console.js +19 -11
  22. data/node_modules/eslint/lib/rules/no-native-reassign.js +1 -1
  23. data/node_modules/eslint/lib/rules/no-negated-in-lhs.js +1 -1
  24. data/node_modules/eslint/lib/types/config-api.d.ts +8 -0
  25. data/node_modules/eslint/lib/types/rules.d.ts +5199 -0
  26. data/node_modules/eslint/package.json +14 -6
  27. data/node_modules/eslint-scope/README.md +4 -3
  28. data/node_modules/eslint-scope/dist/eslint-scope.cjs +59 -2
  29. data/node_modules/eslint-scope/lib/index.js +1 -0
  30. data/node_modules/eslint-scope/lib/referencer.js +52 -0
  31. data/node_modules/eslint-scope/lib/scope-manager.js +4 -0
  32. data/node_modules/eslint-scope/lib/scope.js +1 -1
  33. data/node_modules/eslint-scope/lib/version.js +1 -1
  34. data/node_modules/eslint-scope/package.json +1 -1
  35. data/package.json +2 -2
  36. metadata +16 -11
  37. data/node_modules/eslint/lib/types/rules/best-practices.d.ts +0 -1143
  38. data/node_modules/eslint/lib/types/rules/deprecated.d.ts +0 -252
  39. data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +0 -647
  40. data/node_modules/eslint/lib/types/rules/index.d.ts +0 -50
  41. data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +0 -171
  42. data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +0 -685
  43. data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +0 -38
  44. data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +0 -2043
  45. data/node_modules/eslint/lib/types/rules/variables.d.ts +0 -234
@@ -72,7 +72,9 @@ This ensures that pnpm installs dependencies in a way that is more compatible wi
72
72
  You can configure rules in your `eslint.config.js` files as in this example:
73
73
 
74
74
  ```js
75
- export default [
75
+ import { defineConfig } from "eslint/config";
76
+
77
+ export default defineConfig([
76
78
  {
77
79
  files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
78
80
  rules: {
@@ -80,7 +82,7 @@ export default [
80
82
  "no-constant-binary-expression": "error"
81
83
  }
82
84
  }
83
- ];
85
+ ]);
84
86
  ```
85
87
 
86
88
  The names `"prefer-const"` and `"no-constant-binary-expression"` are the names of [rules](https://eslint.org/docs/rules) in ESLint. The first value is the error level of the rule and can be one of these values:
@@ -318,8 +320,8 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
318
320
 
319
321
  <h3>Platinum Sponsors</h3>
320
322
  <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3>
321
- <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3>
322
- <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/fe76f99/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
323
+ <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3>
324
+ <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/fe76f99/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
323
325
  <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p>
324
326
  <h3>Technology Sponsors</h3>
325
327
  Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @fileoverview exports for config helpers
3
+ * @author Nicholas C. Zakas
4
+ */
5
+
6
+ "use strict";
7
+ const { defineConfig, globalIgnores } = require("@eslint/config-helpers");
8
+
9
+ module.exports = {
10
+ defineConfig,
11
+ globalIgnores
12
+ };
@@ -58,20 +58,24 @@ const CODE_PATH_EVENTS = [
58
58
  * @private
59
59
  */
60
60
  function validate(ast) {
61
+ if (!ast) {
62
+ throw new TypeError(`Unexpected empty AST. (${ast})`);
63
+ }
64
+
61
65
  if (!ast.tokens) {
62
- throw new Error("AST is missing the tokens array.");
66
+ throw new TypeError("AST is missing the tokens array.");
63
67
  }
64
68
 
65
69
  if (!ast.comments) {
66
- throw new Error("AST is missing the comments array.");
70
+ throw new TypeError("AST is missing the comments array.");
67
71
  }
68
72
 
69
73
  if (!ast.loc) {
70
- throw new Error("AST is missing location information.");
74
+ throw new TypeError("AST is missing location information.");
71
75
  }
72
76
 
73
77
  if (!ast.range) {
74
- throw new Error("AST is missing range information");
78
+ throw new TypeError("AST is missing range information");
75
79
  }
76
80
  }
77
81
 
@@ -204,16 +208,16 @@ function isSpaceBetween(sourceCode, first, second, checkInsideOfJSXText) {
204
208
  if (
205
209
  currentToken.range[1] !== nextToken.range[0] ||
206
210
 
207
- /*
208
- * For backward compatibility, check spaces in JSXText.
209
- * https://github.com/eslint/eslint/issues/12614
210
- */
211
- (
212
- checkInsideOfJSXText &&
213
- nextToken !== finalToken &&
214
- nextToken.type === "JSXText" &&
215
- /\s/u.test(nextToken.value)
216
- )
211
+ /*
212
+ * For backward compatibility, check spaces in JSXText.
213
+ * https://github.com/eslint/eslint/issues/12614
214
+ */
215
+ (
216
+ checkInsideOfJSXText &&
217
+ nextToken !== finalToken &&
218
+ nextToken.type === "JSXText" &&
219
+ /\s/u.test(nextToken.value)
220
+ )
217
221
  ) {
218
222
  return true;
219
223
  }
@@ -50,7 +50,8 @@ module.exports = {
50
50
  messages: {
51
51
  unexpected: "Unexpected console statement.",
52
52
  limited: "Unexpected console statement. Only these console methods are allowed: {{ allowed }}.",
53
- removeConsole: "Remove the console.{{ propertyName }}()."
53
+ removeConsole: "Remove the console.{{ propertyName }}().",
54
+ removeMethodCall: "Remove the console method call."
54
55
  }
55
56
  },
56
57
 
@@ -165,22 +166,29 @@ module.exports = {
165
166
  function report(reference) {
166
167
  const node = reference.identifier.parent;
167
168
 
168
- const propertyName = astUtils.getStaticPropertyName(node);
169
+ const suggest = [];
170
+
171
+ if (canProvideSuggestions(node)) {
172
+ const suggestion = {
173
+ fix(fixer) {
174
+ return fixer.remove(node.parent.parent);
175
+ }
176
+ };
169
177
 
178
+ if (node.computed) {
179
+ suggestion.messageId = "removeMethodCall";
180
+ } else {
181
+ suggestion.messageId = "removeConsole";
182
+ suggestion.data = { propertyName: node.property.name };
183
+ }
184
+ suggest.push(suggestion);
185
+ }
170
186
  context.report({
171
187
  node,
172
188
  loc: node.loc,
173
189
  messageId: allowed.length ? "limited" : "unexpected",
174
190
  data: { allowed: allowed.join(", ") },
175
- suggest: canProvideSuggestions(node)
176
- ? [{
177
- messageId: "removeConsole",
178
- data: { propertyName },
179
- fix(fixer) {
180
- return fixer.remove(node.parent.parent);
181
- }
182
- }]
183
- : []
191
+ suggest
184
192
  });
185
193
  }
186
194
 
@@ -22,7 +22,7 @@ module.exports = {
22
22
  },
23
23
 
24
24
  deprecated: {
25
- message: "Renamed rule",
25
+ message: "Renamed rule.",
26
26
  url: "https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",
27
27
  deprecatedSince: "3.3.0",
28
28
  availableUntil: null,
@@ -22,7 +22,7 @@ module.exports = {
22
22
  },
23
23
 
24
24
  deprecated: {
25
- message: "Renamed rule",
25
+ message: "Renamed rule.",
26
26
  url: "https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",
27
27
  deprecatedSince: "3.3.0",
28
28
  availableUntil: null,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @fileoverview typings for "eslint/config" module
3
+ * @author Nicholas C. Zakas
4
+ */
5
+
6
+ import { defineConfig, globalIgnores } from "@eslint/config-helpers";
7
+
8
+ export { defineConfig, globalIgnores };