immosquare-cleaner 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/linters/rubocop-3.2.2.yml +1 -0
  4. data/linters/rubocop.yml +2 -0
  5. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/LICENSE +19 -0
  6. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/README.md +71 -0
  7. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
  8. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
  9. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
  10. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
  11. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4333 -0
  12. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
  13. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
  14. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
  15. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
  16. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
  17. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
  18. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
  19. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
  20. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1149 -0
  21. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
  22. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
  23. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index.js +56 -0
  24. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
  25. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
  26. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
  27. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
  28. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
  29. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
  30. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
  31. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/strip-json-comments/index.d.ts +36 -0
  32. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/strip-json-comments/index.js +77 -0
  33. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/strip-json-comments/license +9 -0
  34. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/strip-json-comments/package.json +47 -0
  35. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/strip-json-comments/readme.md +78 -0
  36. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/package.json +82 -0
  37. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/eslintrc/universal.js +9 -0
  38. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/LICENSE +19 -0
  39. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/README.md +57 -0
  40. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/package.json +31 -0
  41. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/src/configs/eslint-all.js +278 -0
  42. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/src/configs/eslint-recommended.js +76 -0
  43. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@eslint/js/src/index.js +17 -0
  44. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
  45. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/README.md +342 -0
  46. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/api.js +1061 -0
  47. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +8 -0
  48. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/LICENSE +29 -0
  49. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/README.md +234 -0
  50. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/package.json +33 -0
  51. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/src/index.js +7 -0
  52. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +53 -0
  53. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/src/object-schema.js +235 -0
  54. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +102 -0
  55. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +66 -0
  56. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +611 -0
  57. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +186 -0
  58. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/LICENSE +15 -0
  59. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/README.md +224 -0
  60. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/minimatch.js +947 -0
  61. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
  62. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
  63. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
  64. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
  65. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/node_modules/minimatch/package.json +33 -0
  66. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/@humanwhocodes/config-array/package.json +61 -0
  67. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/index.d.ts +415 -0
  68. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/license +9 -0
  69. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/package.json +68 -0
  70. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/readme.md +341 -0
  71. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/source/index.js +229 -0
  72. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/source/templates.js +134 -0
  73. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/chalk/source/util.js +39 -0
  74. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/LICENSE +15 -0
  75. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/README.md +230 -0
  76. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/minimatch.js +947 -0
  77. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
  78. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
  79. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
  80. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
  81. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/minimatch/package.json +33 -0
  82. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/index.d.ts +17 -0
  83. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/index.js +4 -0
  84. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/license +9 -0
  85. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
  86. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
  87. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  88. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
  89. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
  90. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/package.json +54 -0
  91. data/node_modules/@eslint-community/eslint-utils/node_modules/eslint/node_modules/strip-ansi/readme.md +46 -0
  92. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +162 -0
  93. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +21 -0
  94. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +38 -0
  95. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +59 -0
  96. data/node_modules/npm-check-updates/build/package.json +2 -3
  97. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js +18 -11
  98. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js.map +1 -1
  99. data/node_modules/npm-check-updates/build/src/package-managers/bun.js +2 -3
  100. data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +1 -1
  101. data/node_modules/npm-check-updates/build/src/package-managers/npm.js +12 -8
  102. data/node_modules/npm-check-updates/build/src/package-managers/npm.js.map +1 -1
  103. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js +37 -14
  104. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js.map +1 -1
  105. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js +36 -11
  106. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js.map +1 -1
  107. data/node_modules/npm-check-updates/package.json +2 -3
  108. data/node_modules/prettier/LICENSE +3 -3
  109. data/node_modules/prettier/index.cjs +1 -1
  110. data/node_modules/prettier/index.mjs +14 -22
  111. data/node_modules/prettier/package.json +1 -1
  112. data/node_modules/prettier/plugins/acorn.js +10 -10
  113. data/node_modules/prettier/plugins/acorn.mjs +10 -10
  114. data/node_modules/prettier/plugins/angular.js +1 -1
  115. data/node_modules/prettier/plugins/angular.mjs +1 -1
  116. data/node_modules/prettier/plugins/babel.js +8 -8
  117. data/node_modules/prettier/plugins/babel.mjs +8 -8
  118. data/node_modules/prettier/plugins/estree.js +24 -24
  119. data/node_modules/prettier/plugins/estree.mjs +24 -24
  120. data/node_modules/prettier/plugins/flow.js +17 -17
  121. data/node_modules/prettier/plugins/flow.mjs +17 -17
  122. data/node_modules/prettier/plugins/graphql.js +6 -6
  123. data/node_modules/prettier/plugins/graphql.mjs +6 -6
  124. data/node_modules/prettier/plugins/html.js +1 -1
  125. data/node_modules/prettier/plugins/html.mjs +1 -1
  126. data/node_modules/prettier/plugins/markdown.js +1 -1
  127. data/node_modules/prettier/plugins/markdown.mjs +1 -1
  128. data/node_modules/prettier/plugins/meriyah.js +4 -4
  129. data/node_modules/prettier/plugins/meriyah.mjs +4 -4
  130. data/node_modules/prettier/plugins/typescript.js +19 -19
  131. data/node_modules/prettier/plugins/typescript.mjs +19 -19
  132. data/node_modules/prettier/standalone.js +10 -10
  133. data/node_modules/prettier/standalone.mjs +9 -9
  134. data/package.json +2 -2
  135. metadata +95 -4
@@ -0,0 +1,149 @@
1
+ /**
2
+ * @fileoverview Define common types for input completion.
3
+ * @author Toru Nagashima <https://github.com/mysticatea>
4
+ */
5
+
6
+ /** @type {any} */
7
+ export default {};
8
+
9
+ /** @typedef {boolean | "off" | "readable" | "readonly" | "writable" | "writeable"} GlobalConf */
10
+ /** @typedef {0 | 1 | 2 | "off" | "warn" | "error"} SeverityConf */
11
+ /** @typedef {SeverityConf | [SeverityConf, ...any[]]} RuleConf */
12
+
13
+ /**
14
+ * @typedef {Object} EcmaFeatures
15
+ * @property {boolean} [globalReturn] Enabling `return` statements at the top-level.
16
+ * @property {boolean} [jsx] Enabling JSX syntax.
17
+ * @property {boolean} [impliedStrict] Enabling strict mode always.
18
+ */
19
+
20
+ /**
21
+ * @typedef {Object} ParserOptions
22
+ * @property {EcmaFeatures} [ecmaFeatures] The optional features.
23
+ * @property {3|5|6|7|8|9|10|11|12|2015|2016|2017|2018|2019|2020|2021} [ecmaVersion] The ECMAScript version (or revision number).
24
+ * @property {"script"|"module"} [sourceType] The source code type.
25
+ */
26
+
27
+ /**
28
+ * @typedef {Object} ConfigData
29
+ * @property {Record<string, boolean>} [env] The environment settings.
30
+ * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs.
31
+ * @property {Record<string, GlobalConf>} [globals] The global variable settings.
32
+ * @property {string | string[]} [ignorePatterns] The glob patterns that ignore to lint.
33
+ * @property {boolean} [noInlineConfig] The flag that disables directive comments.
34
+ * @property {OverrideConfigData[]} [overrides] The override settings per kind of files.
35
+ * @property {string} [parser] The path to a parser or the package name of a parser.
36
+ * @property {ParserOptions} [parserOptions] The parser options.
37
+ * @property {string[]} [plugins] The plugin specifiers.
38
+ * @property {string} [processor] The processor specifier.
39
+ * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments.
40
+ * @property {boolean} [root] The root flag.
41
+ * @property {Record<string, RuleConf>} [rules] The rule settings.
42
+ * @property {Object} [settings] The shared settings.
43
+ */
44
+
45
+ /**
46
+ * @typedef {Object} OverrideConfigData
47
+ * @property {Record<string, boolean>} [env] The environment settings.
48
+ * @property {string | string[]} [excludedFiles] The glob pattarns for excluded files.
49
+ * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs.
50
+ * @property {string | string[]} files The glob patterns for target files.
51
+ * @property {Record<string, GlobalConf>} [globals] The global variable settings.
52
+ * @property {boolean} [noInlineConfig] The flag that disables directive comments.
53
+ * @property {OverrideConfigData[]} [overrides] The override settings per kind of files.
54
+ * @property {string} [parser] The path to a parser or the package name of a parser.
55
+ * @property {ParserOptions} [parserOptions] The parser options.
56
+ * @property {string[]} [plugins] The plugin specifiers.
57
+ * @property {string} [processor] The processor specifier.
58
+ * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments.
59
+ * @property {Record<string, RuleConf>} [rules] The rule settings.
60
+ * @property {Object} [settings] The shared settings.
61
+ */
62
+
63
+ /**
64
+ * @typedef {Object} ParseResult
65
+ * @property {Object} ast The AST.
66
+ * @property {ScopeManager} [scopeManager] The scope manager of the AST.
67
+ * @property {Record<string, any>} [services] The services that the parser provides.
68
+ * @property {Record<string, string[]>} [visitorKeys] The visitor keys of the AST.
69
+ */
70
+
71
+ /**
72
+ * @typedef {Object} Parser
73
+ * @property {(text:string, options:ParserOptions) => Object} parse The definition of global variables.
74
+ * @property {(text:string, options:ParserOptions) => ParseResult} [parseForESLint] The parser options that will be enabled under this environment.
75
+ */
76
+
77
+ /**
78
+ * @typedef {Object} Environment
79
+ * @property {Record<string, GlobalConf>} [globals] The definition of global variables.
80
+ * @property {ParserOptions} [parserOptions] The parser options that will be enabled under this environment.
81
+ */
82
+
83
+ /**
84
+ * @typedef {Object} LintMessage
85
+ * @property {number} column The 1-based column number.
86
+ * @property {number} [endColumn] The 1-based column number of the end location.
87
+ * @property {number} [endLine] The 1-based line number of the end location.
88
+ * @property {boolean} fatal If `true` then this is a fatal error.
89
+ * @property {{range:[number,number], text:string}} [fix] Information for autofix.
90
+ * @property {number} line The 1-based line number.
91
+ * @property {string} message The error message.
92
+ * @property {string|null} ruleId The ID of the rule which makes this message.
93
+ * @property {0|1|2} severity The severity of this message.
94
+ * @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions.
95
+ */
96
+
97
+ /**
98
+ * @typedef {Object} SuggestionResult
99
+ * @property {string} desc A short description.
100
+ * @property {string} [messageId] Id referencing a message for the description.
101
+ * @property {{ text: string, range: number[] }} fix fix result info
102
+ */
103
+
104
+ /**
105
+ * @typedef {Object} Processor
106
+ * @property {(text:string, filename:string) => Array<string | { text:string, filename:string }>} [preprocess] The function to extract code blocks.
107
+ * @property {(messagesList:LintMessage[][], filename:string) => LintMessage[]} [postprocess] The function to merge messages.
108
+ * @property {boolean} [supportsAutofix] If `true` then it means the processor supports autofix.
109
+ */
110
+
111
+ /**
112
+ * @typedef {Object} RuleMetaDocs
113
+ * @property {string} category The category of the rule.
114
+ * @property {string} description The description of the rule.
115
+ * @property {boolean} recommended If `true` then the rule is included in `eslint:recommended` preset.
116
+ * @property {string} url The URL of the rule documentation.
117
+ */
118
+
119
+ /**
120
+ * @typedef {Object} RuleMeta
121
+ * @property {boolean} [deprecated] If `true` then the rule has been deprecated.
122
+ * @property {RuleMetaDocs} docs The document information of the rule.
123
+ * @property {"code"|"whitespace"} [fixable] The autofix type.
124
+ * @property {Record<string,string>} [messages] The messages the rule reports.
125
+ * @property {string[]} [replacedBy] The IDs of the alternative rules.
126
+ * @property {Array|Object} schema The option schema of the rule.
127
+ * @property {"problem"|"suggestion"|"layout"} type The rule type.
128
+ */
129
+
130
+ /**
131
+ * @typedef {Object} Rule
132
+ * @property {Function} create The factory of the rule.
133
+ * @property {RuleMeta} meta The meta data of the rule.
134
+ */
135
+
136
+ /**
137
+ * @typedef {Object} Plugin
138
+ * @property {Record<string, ConfigData>} [configs] The definition of plugin configs.
139
+ * @property {Record<string, Environment>} [environments] The definition of plugin environments.
140
+ * @property {Record<string, Processor>} [processors] The definition of plugin processors.
141
+ * @property {Record<string, Function | Rule>} [rules] The definition of plugin rules.
142
+ */
143
+
144
+ /**
145
+ * Information of deprecated rules.
146
+ * @typedef {Object} DeprecatedRuleInfo
147
+ * @property {string} ruleId The rule ID.
148
+ * @property {string[]} replacedBy The rule IDs that replace this deprecated rule.
149
+ */
@@ -0,0 +1,36 @@
1
+ declare namespace stripJsonComments {
2
+ interface Options {
3
+ /**
4
+ Replace comments with whitespace instead of stripping them entirely.
5
+
6
+ @default true
7
+ */
8
+ readonly whitespace?: boolean;
9
+ }
10
+ }
11
+
12
+ /**
13
+ Strip comments from JSON. Lets you use comments in your JSON files!
14
+
15
+ It will replace single-line comments `//` and multi-line comments `/**\/` with whitespace. This allows JSON error positions to remain as close as possible to the original source.
16
+
17
+ @param jsonString - Accepts a string with JSON.
18
+ @returns A JSON string without comments.
19
+
20
+ @example
21
+ ```
22
+ const json = `{
23
+ // Rainbows
24
+ "unicorn": "cake"
25
+ }`;
26
+
27
+ JSON.parse(stripJsonComments(json));
28
+ //=> {unicorn: 'cake'}
29
+ ```
30
+ */
31
+ declare function stripJsonComments(
32
+ jsonString: string,
33
+ options?: stripJsonComments.Options
34
+ ): string;
35
+
36
+ export = stripJsonComments;
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+ const singleComment = Symbol('singleComment');
3
+ const multiComment = Symbol('multiComment');
4
+ const stripWithoutWhitespace = () => '';
5
+ const stripWithWhitespace = (string, start, end) => string.slice(start, end).replace(/\S/g, ' ');
6
+
7
+ const isEscaped = (jsonString, quotePosition) => {
8
+ let index = quotePosition - 1;
9
+ let backslashCount = 0;
10
+
11
+ while (jsonString[index] === '\\') {
12
+ index -= 1;
13
+ backslashCount += 1;
14
+ }
15
+
16
+ return Boolean(backslashCount % 2);
17
+ };
18
+
19
+ module.exports = (jsonString, options = {}) => {
20
+ if (typeof jsonString !== 'string') {
21
+ throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof jsonString}\``);
22
+ }
23
+
24
+ const strip = options.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
25
+
26
+ let insideString = false;
27
+ let insideComment = false;
28
+ let offset = 0;
29
+ let result = '';
30
+
31
+ for (let i = 0; i < jsonString.length; i++) {
32
+ const currentCharacter = jsonString[i];
33
+ const nextCharacter = jsonString[i + 1];
34
+
35
+ if (!insideComment && currentCharacter === '"') {
36
+ const escaped = isEscaped(jsonString, i);
37
+ if (!escaped) {
38
+ insideString = !insideString;
39
+ }
40
+ }
41
+
42
+ if (insideString) {
43
+ continue;
44
+ }
45
+
46
+ if (!insideComment && currentCharacter + nextCharacter === '//') {
47
+ result += jsonString.slice(offset, i);
48
+ offset = i;
49
+ insideComment = singleComment;
50
+ i++;
51
+ } else if (insideComment === singleComment && currentCharacter + nextCharacter === '\r\n') {
52
+ i++;
53
+ insideComment = false;
54
+ result += strip(jsonString, offset, i);
55
+ offset = i;
56
+ continue;
57
+ } else if (insideComment === singleComment && currentCharacter === '\n') {
58
+ insideComment = false;
59
+ result += strip(jsonString, offset, i);
60
+ offset = i;
61
+ } else if (!insideComment && currentCharacter + nextCharacter === '/*') {
62
+ result += jsonString.slice(offset, i);
63
+ offset = i;
64
+ insideComment = multiComment;
65
+ i++;
66
+ continue;
67
+ } else if (insideComment === multiComment && currentCharacter + nextCharacter === '*/') {
68
+ i++;
69
+ insideComment = false;
70
+ result += strip(jsonString, offset, i + 1);
71
+ offset = i + 1;
72
+ continue;
73
+ }
74
+ }
75
+
76
+ return result + (insideComment ? strip(jsonString.slice(offset)) : jsonString.slice(offset));
77
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "strip-json-comments",
3
+ "version": "3.1.1",
4
+ "description": "Strip comments from JSON. Lets you use comments in your JSON files!",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/strip-json-comments",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "engines": {
14
+ "node": ">=8"
15
+ },
16
+ "scripts": {
17
+ "test": "xo && ava && tsd",
18
+ "bench": "matcha benchmark.js"
19
+ },
20
+ "files": [
21
+ "index.js",
22
+ "index.d.ts"
23
+ ],
24
+ "keywords": [
25
+ "json",
26
+ "strip",
27
+ "comments",
28
+ "remove",
29
+ "delete",
30
+ "trim",
31
+ "multiline",
32
+ "parse",
33
+ "config",
34
+ "configuration",
35
+ "settings",
36
+ "util",
37
+ "env",
38
+ "environment",
39
+ "jsonc"
40
+ ],
41
+ "devDependencies": {
42
+ "ava": "^1.4.1",
43
+ "matcha": "^0.7.0",
44
+ "tsd": "^0.7.2",
45
+ "xo": "^0.24.0"
46
+ }
47
+ }
@@ -0,0 +1,78 @@
1
+ # strip-json-comments [![Build Status](https://travis-ci.com/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.com/github/sindresorhus/strip-json-comments)
2
+
3
+ > Strip comments from JSON. Lets you use comments in your JSON files!
4
+
5
+ This is now possible:
6
+
7
+ ```js
8
+ {
9
+ // Rainbows
10
+ "unicorn": /* ❤ */ "cake"
11
+ }
12
+ ```
13
+
14
+ It will replace single-line comments `//` and multi-line comments `/**/` with whitespace. This allows JSON error positions to remain as close as possible to the original source.
15
+
16
+ Also available as a [Gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[Grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[Broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.
17
+
18
+ ## Install
19
+
20
+ ```
21
+ $ npm install strip-json-comments
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```js
27
+ const json = `{
28
+ // Rainbows
29
+ "unicorn": /* ❤ */ "cake"
30
+ }`;
31
+
32
+ JSON.parse(stripJsonComments(json));
33
+ //=> {unicorn: 'cake'}
34
+ ```
35
+
36
+ ## API
37
+
38
+ ### stripJsonComments(jsonString, options?)
39
+
40
+ #### jsonString
41
+
42
+ Type: `string`
43
+
44
+ Accepts a string with JSON and returns a string without comments.
45
+
46
+ #### options
47
+
48
+ Type: `object`
49
+
50
+ ##### whitespace
51
+
52
+ Type: `boolean`\
53
+ Default: `true`
54
+
55
+ Replace comments with whitespace instead of stripping them entirely.
56
+
57
+ ## Benchmark
58
+
59
+ ```
60
+ $ npm run bench
61
+ ```
62
+
63
+ ## Related
64
+
65
+ - [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module
66
+ - [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS
67
+
68
+ ---
69
+
70
+ <div align="center">
71
+ <b>
72
+ <a href="https://tidelift.com/subscription/pkg/npm-strip-json-comments?utm_source=npm-strip-json-comments&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
73
+ </b>
74
+ <br>
75
+ <sub>
76
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
77
+ </sub>
78
+ </div>
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@eslint/eslintrc",
3
+ "version": "2.1.2",
4
+ "description": "The legacy ESLintRC config file format for ESLint",
5
+ "type": "module",
6
+ "main": "./dist/eslintrc.cjs",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./lib/index.js",
10
+ "require": "./dist/eslintrc.cjs"
11
+ },
12
+ "./package.json": "./package.json",
13
+ "./universal": {
14
+ "import": "./lib/index-universal.js",
15
+ "require": "./dist/eslintrc-universal.cjs"
16
+ }
17
+ },
18
+ "files": [
19
+ "lib",
20
+ "conf",
21
+ "LICENSE",
22
+ "dist",
23
+ "universal.js"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "build": "rollup -c",
30
+ "lint": "eslint . --report-unused-disable-directives",
31
+ "lint:fix": "npm run lint -- --fix",
32
+ "prepare": "npm run build",
33
+ "release:generate:latest": "eslint-generate-release",
34
+ "release:generate:alpha": "eslint-generate-prerelease alpha",
35
+ "release:generate:beta": "eslint-generate-prerelease beta",
36
+ "release:generate:rc": "eslint-generate-prerelease rc",
37
+ "release:publish": "eslint-publish-release",
38
+ "test": "mocha -R progress -c 'tests/lib/*.cjs' && c8 mocha -R progress -c 'tests/lib/**/*.js'"
39
+ },
40
+ "repository": "eslint/eslintrc",
41
+ "funding": "https://opencollective.com/eslint",
42
+ "keywords": [
43
+ "ESLint",
44
+ "ESLintRC",
45
+ "Configuration"
46
+ ],
47
+ "author": "Nicholas C. Zakas",
48
+ "license": "MIT",
49
+ "bugs": {
50
+ "url": "https://github.com/eslint/eslintrc/issues"
51
+ },
52
+ "homepage": "https://github.com/eslint/eslintrc#readme",
53
+ "devDependencies": {
54
+ "c8": "^7.7.3",
55
+ "chai": "^4.3.4",
56
+ "eslint": "^7.31.0",
57
+ "eslint-config-eslint": "^7.0.0",
58
+ "eslint-plugin-jsdoc": "^35.4.1",
59
+ "eslint-plugin-node": "^11.1.0",
60
+ "eslint-release": "^3.2.0",
61
+ "fs-teardown": "^0.1.3",
62
+ "mocha": "^9.0.3",
63
+ "rollup": "^2.70.1",
64
+ "shelljs": "^0.8.4",
65
+ "sinon": "^11.1.2",
66
+ "temp-dir": "^2.0.0"
67
+ },
68
+ "dependencies": {
69
+ "ajv": "^6.12.4",
70
+ "debug": "^4.3.2",
71
+ "espree": "^9.6.0",
72
+ "globals": "^13.19.0",
73
+ "ignore": "^5.2.0",
74
+ "import-fresh": "^3.2.1",
75
+ "js-yaml": "^4.1.0",
76
+ "minimatch": "^3.1.2",
77
+ "strip-json-comments": "^3.1.1"
78
+ },
79
+ "engines": {
80
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
81
+ }
82
+ }
@@ -0,0 +1,9 @@
1
+ // Jest (and probably some other runtimes with custom implementations of
2
+ // `require`) doesn't support `exports` in `package.json`, so this file is here
3
+ // to help them load this module. Note that it is also `.js` and not `.cjs` for
4
+ // the same reason - `cjs` files requires to be loaded with an extension, but
5
+ // since Jest doesn't respect `module` outside of ESM mode it still works in
6
+ // this case (and the `require` in _this_ file does specify the extension).
7
+
8
+ // eslint-disable-next-line no-undef
9
+ module.exports = require("./dist/eslintrc-universal.cjs");
@@ -0,0 +1,19 @@
1
+ Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,57 @@
1
+ [![npm version](https://img.shields.io/npm/v/@eslint/js.svg)](https://www.npmjs.com/package/@eslint/js)
2
+
3
+ # ESLint JavaScript Plugin
4
+
5
+ [Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat)
6
+
7
+ The beginnings of separating out JavaScript-specific functionality from ESLint.
8
+
9
+ Right now, this plugin contains two configurations:
10
+
11
+ * `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
12
+ * `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
13
+
14
+ ## Installation
15
+
16
+ ```shell
17
+ npm install @eslint/js -D
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Use in your `eslint.config.js` file anytime you want to extend one of the configs:
23
+
24
+ ```js
25
+ import js from "@eslint/js";
26
+
27
+ export default [
28
+
29
+ // apply recommended rules to JS files
30
+ {
31
+ files: ["**/*.js"],
32
+ rules: js.configs.recommended.rules
33
+ },
34
+
35
+ // apply recommended rules to JS files with an override
36
+ {
37
+ files: ["**/*.js"],
38
+ rules: {
39
+ ...js.configs.recommended.rules,
40
+ "no-unused-vars": "warn"
41
+ }
42
+ },
43
+
44
+ // apply all rules to JS files
45
+ {
46
+ files: ["**/*.js"],
47
+ rules: {
48
+ ...js.configs.all.rules,
49
+ "no-unused-vars": "warn"
50
+ }
51
+ }
52
+ ]
53
+ ```
54
+
55
+ ## License
56
+
57
+ MIT
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@eslint/js",
3
+ "version": "8.50.0",
4
+ "description": "ESLint JavaScript language implementation",
5
+ "main": "./src/index.js",
6
+ "scripts": {},
7
+ "files": [
8
+ "LICENSE",
9
+ "README.md",
10
+ "src"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/eslint/eslint.git",
18
+ "directory": "packages/js"
19
+ },
20
+ "homepage": "https://eslint.org",
21
+ "bugs": "https://github.com/eslint/eslint/issues/",
22
+ "keywords": [
23
+ "javascript",
24
+ "eslint-plugin",
25
+ "eslint"
26
+ ],
27
+ "license": "MIT",
28
+ "engines": {
29
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
30
+ }
31
+ }