immosquare-cleaner 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +3 -2
  4. data/linters/eslintrc.json +54 -27
  5. data/package.json +7 -8
  6. metadata +30 -69
  7. data/node_modules/eslint-plugin-jsonc/LICENSE +0 -21
  8. data/node_modules/eslint-plugin-jsonc/README.md +0 -279
  9. data/node_modules/eslint-plugin-jsonc/conf/eslint-all.js +0 -11
  10. data/node_modules/eslint-plugin-jsonc/conf/eslint-recommended.js +0 -13
  11. data/node_modules/eslint-plugin-jsonc/conf/rules.js +0 -10
  12. data/node_modules/eslint-plugin-jsonc/dist/configs/all.js +0 -18
  13. data/node_modules/eslint-plugin-jsonc/dist/configs/auto-config.js +0 -13
  14. data/node_modules/eslint-plugin-jsonc/dist/configs/base.js +0 -15
  15. data/node_modules/eslint-plugin-jsonc/dist/configs/prettier.js +0 -26
  16. data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-json.js +0 -41
  17. data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-json5.js +0 -30
  18. data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-jsonc.js +0 -39
  19. data/node_modules/eslint-plugin-jsonc/dist/index.js +0 -68
  20. data/node_modules/eslint-plugin-jsonc/dist/meta.js +0 -5
  21. data/node_modules/eslint-plugin-jsonc/dist/rules/array-bracket-newline.js +0 -23
  22. data/node_modules/eslint-plugin-jsonc/dist/rules/array-bracket-spacing.js +0 -23
  23. data/node_modules/eslint-plugin-jsonc/dist/rules/array-element-newline.js +0 -23
  24. data/node_modules/eslint-plugin-jsonc/dist/rules/auto.js +0 -66
  25. data/node_modules/eslint-plugin-jsonc/dist/rules/comma-dangle.js +0 -27
  26. data/node_modules/eslint-plugin-jsonc/dist/rules/comma-style.js +0 -23
  27. data/node_modules/eslint-plugin-jsonc/dist/rules/indent.js +0 -23
  28. data/node_modules/eslint-plugin-jsonc/dist/rules/key-name-casing.js +0 -94
  29. data/node_modules/eslint-plugin-jsonc/dist/rules/key-spacing.js +0 -23
  30. data/node_modules/eslint-plugin-jsonc/dist/rules/no-bigint-literals.js +0 -33
  31. data/node_modules/eslint-plugin-jsonc/dist/rules/no-binary-expression.js +0 -38
  32. data/node_modules/eslint-plugin-jsonc/dist/rules/no-binary-numeric-literals.js +0 -39
  33. data/node_modules/eslint-plugin-jsonc/dist/rules/no-comments.js +0 -34
  34. data/node_modules/eslint-plugin-jsonc/dist/rules/no-dupe-keys.js +0 -23
  35. data/node_modules/eslint-plugin-jsonc/dist/rules/no-escape-sequence-in-identifier.js +0 -57
  36. data/node_modules/eslint-plugin-jsonc/dist/rules/no-floating-decimal.js +0 -23
  37. data/node_modules/eslint-plugin-jsonc/dist/rules/no-hexadecimal-numeric-literals.js +0 -39
  38. data/node_modules/eslint-plugin-jsonc/dist/rules/no-infinity.js +0 -37
  39. data/node_modules/eslint-plugin-jsonc/dist/rules/no-irregular-whitespace.js +0 -23
  40. data/node_modules/eslint-plugin-jsonc/dist/rules/no-multi-str.js +0 -23
  41. data/node_modules/eslint-plugin-jsonc/dist/rules/no-nan.js +0 -37
  42. data/node_modules/eslint-plugin-jsonc/dist/rules/no-number-props.js +0 -41
  43. data/node_modules/eslint-plugin-jsonc/dist/rules/no-numeric-separators.js +0 -42
  44. data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal-escape.js +0 -23
  45. data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal-numeric-literals.js +0 -39
  46. data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal.js +0 -23
  47. data/node_modules/eslint-plugin-jsonc/dist/rules/no-parenthesized.js +0 -70
  48. data/node_modules/eslint-plugin-jsonc/dist/rules/no-plus-sign.js +0 -39
  49. data/node_modules/eslint-plugin-jsonc/dist/rules/no-regexp-literals.js +0 -33
  50. data/node_modules/eslint-plugin-jsonc/dist/rules/no-sparse-arrays.js +0 -23
  51. data/node_modules/eslint-plugin-jsonc/dist/rules/no-template-literals.js +0 -36
  52. data/node_modules/eslint-plugin-jsonc/dist/rules/no-undefined-value.js +0 -35
  53. data/node_modules/eslint-plugin-jsonc/dist/rules/no-unicode-codepoint-escapes.js +0 -73
  54. data/node_modules/eslint-plugin-jsonc/dist/rules/no-useless-escape.js +0 -23
  55. data/node_modules/eslint-plugin-jsonc/dist/rules/object-curly-newline.js +0 -23
  56. data/node_modules/eslint-plugin-jsonc/dist/rules/object-curly-spacing.js +0 -23
  57. data/node_modules/eslint-plugin-jsonc/dist/rules/object-property-newline.js +0 -23
  58. data/node_modules/eslint-plugin-jsonc/dist/rules/quote-props.js +0 -27
  59. data/node_modules/eslint-plugin-jsonc/dist/rules/quotes.js +0 -27
  60. data/node_modules/eslint-plugin-jsonc/dist/rules/sort-array-values.js +0 -371
  61. data/node_modules/eslint-plugin-jsonc/dist/rules/sort-keys.js +0 -413
  62. data/node_modules/eslint-plugin-jsonc/dist/rules/space-unary-ops.js +0 -23
  63. data/node_modules/eslint-plugin-jsonc/dist/rules/valid-json-number.js +0 -138
  64. data/node_modules/eslint-plugin-jsonc/dist/rules/vue-custom-block/no-parsing-error.js +0 -86
  65. data/node_modules/eslint-plugin-jsonc/dist/types.js +0 -2
  66. data/node_modules/eslint-plugin-jsonc/dist/utils/casing.js +0 -134
  67. data/node_modules/eslint-plugin-jsonc/dist/utils/get-auto-jsonc-rules-config.js +0 -97
  68. data/node_modules/eslint-plugin-jsonc/dist/utils/index.js +0 -121
  69. data/node_modules/eslint-plugin-jsonc/dist/utils/rules.js +0 -96
  70. data/node_modules/eslint-plugin-jsonc/index.d.ts +0 -364
  71. data/node_modules/eslint-plugin-jsonc/package.json +0 -123
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../utils");
4
- exports.default = (0, utils_1.createRule)("no-regexp-literals", {
5
- meta: {
6
- docs: {
7
- description: "disallow RegExp literals",
8
- recommended: ["json", "jsonc", "json5"],
9
- extensionRule: false,
10
- layout: false,
11
- },
12
- schema: [],
13
- messages: {
14
- unexpected: "RegExp literals are not allowed.",
15
- },
16
- type: "problem",
17
- },
18
- create(context) {
19
- if (!context.parserServices.isJSON) {
20
- return {};
21
- }
22
- return {
23
- JSONLiteral(node) {
24
- if (node.regex) {
25
- context.report({
26
- loc: node.loc,
27
- messageId: "unexpected",
28
- });
29
- }
30
- },
31
- };
32
- },
33
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("no-sparse-arrays");
6
- exports.default = (0, utils_1.createRule)("no-sparse-arrays", {
7
- meta: {
8
- docs: {
9
- description: "disallow sparse arrays",
10
- recommended: ["json", "jsonc", "json5"],
11
- extensionRule: true,
12
- layout: false,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- return (0, utils_1.defineWrapperListener)(coreRule, context, context.options);
22
- },
23
- });
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../utils");
4
- exports.default = (0, utils_1.createRule)("no-template-literals", {
5
- meta: {
6
- docs: {
7
- description: "disallow template literals",
8
- recommended: ["json", "jsonc", "json5"],
9
- extensionRule: false,
10
- layout: false,
11
- },
12
- fixable: "code",
13
- schema: [],
14
- messages: {
15
- unexpected: "The template literals are not allowed.",
16
- },
17
- type: "problem",
18
- },
19
- create(context) {
20
- if (!context.parserServices.isJSON) {
21
- return {};
22
- }
23
- return {
24
- JSONTemplateLiteral(node) {
25
- context.report({
26
- loc: node.loc,
27
- messageId: "unexpected",
28
- fix(fixer) {
29
- const s = node.quasis[0].value.cooked;
30
- return fixer.replaceTextRange(node.range, JSON.stringify(s));
31
- },
32
- });
33
- },
34
- };
35
- },
36
- });
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsonc_eslint_parser_1 = require("jsonc-eslint-parser");
4
- const utils_1 = require("../utils");
5
- exports.default = (0, utils_1.createRule)("no-undefined-value", {
6
- meta: {
7
- docs: {
8
- description: "disallow `undefined`",
9
- recommended: ["json", "jsonc", "json5"],
10
- extensionRule: false,
11
- layout: false,
12
- },
13
- schema: [],
14
- messages: {
15
- unexpected: "`undefined` is not allowed.",
16
- },
17
- type: "problem",
18
- },
19
- create(context) {
20
- if (!context.parserServices.isJSON) {
21
- return {};
22
- }
23
- return {
24
- JSONIdentifier(node) {
25
- if (!(0, jsonc_eslint_parser_1.isUndefinedIdentifier)(node)) {
26
- return;
27
- }
28
- context.report({
29
- loc: node.loc,
30
- messageId: "unexpected",
31
- });
32
- },
33
- };
34
- },
35
- });
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../utils");
4
- const eslint_utils_1 = require("@eslint-community/eslint-utils");
5
- exports.default = (0, utils_1.createRule)("no-unicode-codepoint-escapes", {
6
- meta: {
7
- docs: {
8
- description: "disallow Unicode code point escape sequences.",
9
- recommended: ["json", "jsonc", "json5"],
10
- extensionRule: false,
11
- layout: false,
12
- },
13
- fixable: "code",
14
- messages: {
15
- disallow: "Unicode code point escape sequence should not be used.",
16
- },
17
- schema: [],
18
- type: "problem",
19
- },
20
- create(context) {
21
- if (!context.parserServices.isJSON) {
22
- return {};
23
- }
24
- const sourceCode = context.getSourceCode();
25
- return {
26
- JSONIdentifier(node) {
27
- verify(node);
28
- },
29
- JSONLiteral(node) {
30
- if (typeof node.value === "string") {
31
- verify(node);
32
- }
33
- },
34
- JSONTemplateElement(node) {
35
- verify(node);
36
- },
37
- };
38
- function verify(node) {
39
- const codePointEscapeMatcher = new eslint_utils_1.PatternMatcher(/\\u\{[\dA-Fa-f]+\}/gu);
40
- const text = sourceCode.text.slice(...node.range);
41
- for (const match of codePointEscapeMatcher.execAll(text)) {
42
- const start = match.index;
43
- const end = start + match[0].length;
44
- const range = [start + node.range[0], end + node.range[0]];
45
- context.report({
46
- loc: {
47
- start: sourceCode.getLocFromIndex(range[0]),
48
- end: sourceCode.getLocFromIndex(range[1]),
49
- },
50
- messageId: "disallow",
51
- fix(fixer) {
52
- const codePointStr = text.slice(start + 3, end - 1);
53
- let codePoint = Number(`0x${codePointStr}`);
54
- let replacement = null;
55
- if (codePoint <= 0xffff) {
56
- replacement = toHex(codePoint);
57
- }
58
- else {
59
- codePoint -= 0x10000;
60
- const highSurrogate = (codePoint >> 10) + 0xd800;
61
- const lowSurrogate = (codePoint % 0x400) + 0xdc00;
62
- replacement = `${toHex(highSurrogate)}\\u${toHex(lowSurrogate)}`;
63
- }
64
- return fixer.replaceTextRange([range[0] + 2, range[1]], replacement);
65
- },
66
- });
67
- }
68
- }
69
- function toHex(num) {
70
- return `0000${num.toString(16).toUpperCase()}`.substr(-4);
71
- }
72
- },
73
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("no-useless-escape");
6
- exports.default = (0, utils_1.createRule)("no-useless-escape", {
7
- meta: {
8
- docs: {
9
- description: "disallow unnecessary escape usage",
10
- recommended: ["json", "jsonc", "json5"],
11
- extensionRule: true,
12
- layout: false,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- return (0, utils_1.defineWrapperListener)(coreRule, context, context.options);
22
- },
23
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("object-curly-newline");
6
- exports.default = (0, utils_1.createRule)("object-curly-newline", {
7
- meta: {
8
- docs: {
9
- description: "enforce consistent line breaks inside braces",
10
- recommended: null,
11
- extensionRule: true,
12
- layout: true,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- return (0, utils_1.defineWrapperListener)(coreRule, context, context.options);
22
- },
23
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("object-curly-spacing");
6
- exports.default = (0, utils_1.createRule)("object-curly-spacing", {
7
- meta: {
8
- docs: {
9
- description: "enforce consistent spacing inside braces",
10
- recommended: null,
11
- extensionRule: true,
12
- layout: true,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- return (0, utils_1.defineWrapperListener)(coreRule, context, context.options);
22
- },
23
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("object-property-newline");
6
- exports.default = (0, utils_1.createRule)("object-property-newline", {
7
- meta: {
8
- docs: {
9
- description: "enforce placing object properties on separate lines",
10
- recommended: null,
11
- extensionRule: true,
12
- layout: true,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- return (0, utils_1.defineWrapperListener)(coreRule, context, context.options);
22
- },
23
- });
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("quote-props");
6
- exports.default = (0, utils_1.createRule)("quote-props", {
7
- meta: {
8
- docs: {
9
- description: "require quotes around object literal property names",
10
- recommended: ["json", "jsonc"],
11
- extensionRule: true,
12
- layout: true,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- const options = [...context.options];
22
- if (!options[0]) {
23
- options[0] = "always";
24
- }
25
- return (0, utils_1.defineWrapperListener)(coreRule, context, options);
26
- },
27
- });
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const utils_1 = require("../utils");
5
- const coreRule = (0, utils_1.getCoreRule)("quotes");
6
- exports.default = (0, utils_1.createRule)("quotes", {
7
- meta: {
8
- docs: {
9
- description: "enforce use of double or single quotes",
10
- recommended: ["json", "jsonc"],
11
- extensionRule: true,
12
- layout: true,
13
- },
14
- fixable: (_a = coreRule.meta) === null || _a === void 0 ? void 0 : _a.fixable,
15
- hasSuggestions: coreRule.meta.hasSuggestions,
16
- schema: coreRule.meta.schema,
17
- messages: coreRule.meta.messages,
18
- type: coreRule.meta.type,
19
- },
20
- create(context) {
21
- const options = [...context.options];
22
- if (!options[0] || options[0] === "backtick") {
23
- options[0] = "double";
24
- }
25
- return (0, utils_1.defineWrapperListener)(coreRule, context, options);
26
- },
27
- });