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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4464fba726374f86e916dad37fd53b14bf4146e2c6553a165482dd9da60123
4
- data.tar.gz: d209d32b98af2d62dfaca3dec423f05e3cd21d5e78b33defbf73c38dc95bb811
3
+ metadata.gz: 578bdfb074760ab399c493dc51e8bd5a3bf0098edc7953e7d13efd398069eb4e
4
+ data.tar.gz: 1637cf8a334a77a3c0f99c78a1f53341c19ab42c54cb2a714c88cd52a83444de
5
5
  SHA512:
6
- metadata.gz: 78cc7ee01f8d246bbf68446d98950c7ac892709720f4a1a3f63b9ccdb8f59a6f065dc32d63f9ddb223a7bb943faa8709a9c3b2c934decba319ec159d3cfdeb17
7
- data.tar.gz: 23d8cf872d54c1b21252c103f47ea017d91a2d0324397173469619d77809e1cb8bf0a6d87cf35f7a02138426b9d27f7df0e5d6091c326798b53cbcbf3140570f
6
+ metadata.gz: 15d50680c6225568be85e679a8ab74c11ec81f90d51219ffc14bae2a061c6a7e7c3c3205a9c10e7b2fd3187170e1c63669f8fdb8185e46a9ec9b03d4858d255a
7
+ data.tar.gz: 2a6e1b2af5dabacb58fb9ad107ff52c5bb8d3cb8a4c1193113cd333aa50027c98d89ecf3da2824aff060071afbf82aeb9888eb41b0ec21ff5411631ba3fb37fe
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.23".freeze
2
+ VERSION = "0.1.24".freeze
3
3
  end
@@ -1,4 +1,5 @@
1
1
  ---
2
+ require: rubocop/cop/style/method_call_with_args_parentheses_override
2
3
  AllCops:
3
4
  NewCops: enable
4
5
  EnabledByDefault: false
data/linters/rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ require: rubocop/cop/style/method_call_with_args_parentheses_override
2
+
1
3
  # Pour activer toutes les méthodes de Rubocop et activer le cache pour les gros fichiers
2
4
  AllCops:
3
5
  NewCops: enable
@@ -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,71 @@
1
+ # ESLintRC Library
2
+
3
+ This repository contains the legacy ESLintRC configuration file format for ESLint. This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs.
4
+
5
+ **Note:** This package is frozen except for critical bug fixes as ESLint moves to a new config system.
6
+
7
+ ## Installation
8
+
9
+ You can install the package as follows:
10
+
11
+ ```
12
+ npm install @eslint/eslintrc --save-dev
13
+
14
+ # or
15
+
16
+ yarn add @eslint/eslintrc -D
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ The primary class in this package is `FlatCompat`, which is a utility to translate ESLintRC-style configs into flat configs. Here's how you use it inside of your `eslint.config.js` file:
22
+
23
+ ```js
24
+ import { FlatCompat } from "@eslint/eslintrc";
25
+ import js from "@eslint/js";
26
+ import path from "path";
27
+ import { fileURLToPath } from "url";
28
+
29
+ // mimic CommonJS variables -- not needed if using CommonJS
30
+ const __filename = fileURLToPath(import.meta.url);
31
+ const __dirname = path.dirname(__filename);
32
+
33
+ const compat = new FlatCompat({
34
+ baseDirectory: __dirname, // optional; default: process.cwd()
35
+ resolvePluginsRelativeTo: __dirname, // optional
36
+ recommendedConfig: js.configs.recommended, // optional
37
+ allConfig: js.configs.all, // optional
38
+ });
39
+
40
+ export default [
41
+
42
+ // mimic ESLintRC-style extends
43
+ ...compat.extends("standard", "example"),
44
+
45
+ // mimic environments
46
+ ...compat.env({
47
+ es2020: true,
48
+ node: true
49
+ }),
50
+
51
+ // mimic plugins
52
+ ...compat.plugins("airbnb", "react"),
53
+
54
+ // translate an entire config
55
+ ...compat.config({
56
+ plugins: ["airbnb", "react"],
57
+ extends: "standard",
58
+ env: {
59
+ es2020: true,
60
+ node: true
61
+ },
62
+ rules: {
63
+ semi: "error"
64
+ }
65
+ })
66
+ ];
67
+ ```
68
+
69
+ ## License
70
+
71
+ MIT License
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @fileoverview Defines a schema for configs.
3
+ * @author Sylvan Mably
4
+ */
5
+
6
+ const baseConfigProperties = {
7
+ $schema: { type: "string" },
8
+ env: { type: "object" },
9
+ extends: { $ref: "#/definitions/stringOrStrings" },
10
+ globals: { type: "object" },
11
+ overrides: {
12
+ type: "array",
13
+ items: { $ref: "#/definitions/overrideConfig" },
14
+ additionalItems: false
15
+ },
16
+ parser: { type: ["string", "null"] },
17
+ parserOptions: { type: "object" },
18
+ plugins: { type: "array" },
19
+ processor: { type: "string" },
20
+ rules: { type: "object" },
21
+ settings: { type: "object" },
22
+ noInlineConfig: { type: "boolean" },
23
+ reportUnusedDisableDirectives: { type: "boolean" },
24
+
25
+ ecmaFeatures: { type: "object" } // deprecated; logs a warning when used
26
+ };
27
+
28
+ const configSchema = {
29
+ definitions: {
30
+ stringOrStrings: {
31
+ oneOf: [
32
+ { type: "string" },
33
+ {
34
+ type: "array",
35
+ items: { type: "string" },
36
+ additionalItems: false
37
+ }
38
+ ]
39
+ },
40
+ stringOrStringsRequired: {
41
+ oneOf: [
42
+ { type: "string" },
43
+ {
44
+ type: "array",
45
+ items: { type: "string" },
46
+ additionalItems: false,
47
+ minItems: 1
48
+ }
49
+ ]
50
+ },
51
+
52
+ // Config at top-level.
53
+ objectConfig: {
54
+ type: "object",
55
+ properties: {
56
+ root: { type: "boolean" },
57
+ ignorePatterns: { $ref: "#/definitions/stringOrStrings" },
58
+ ...baseConfigProperties
59
+ },
60
+ additionalProperties: false
61
+ },
62
+
63
+ // Config in `overrides`.
64
+ overrideConfig: {
65
+ type: "object",
66
+ properties: {
67
+ excludedFiles: { $ref: "#/definitions/stringOrStrings" },
68
+ files: { $ref: "#/definitions/stringOrStringsRequired" },
69
+ ...baseConfigProperties
70
+ },
71
+ required: ["files"],
72
+ additionalProperties: false
73
+ }
74
+ },
75
+
76
+ $ref: "#/definitions/objectConfig"
77
+ };
78
+
79
+ export default configSchema;
@@ -0,0 +1,215 @@
1
+ /**
2
+ * @fileoverview Defines environment settings and globals.
3
+ * @author Elan Shanker
4
+ */
5
+
6
+ //------------------------------------------------------------------------------
7
+ // Requirements
8
+ //------------------------------------------------------------------------------
9
+
10
+ import globals from "globals";
11
+
12
+ //------------------------------------------------------------------------------
13
+ // Helpers
14
+ //------------------------------------------------------------------------------
15
+
16
+ /**
17
+ * Get the object that has difference.
18
+ * @param {Record<string,boolean>} current The newer object.
19
+ * @param {Record<string,boolean>} prev The older object.
20
+ * @returns {Record<string,boolean>} The difference object.
21
+ */
22
+ function getDiff(current, prev) {
23
+ const retv = {};
24
+
25
+ for (const [key, value] of Object.entries(current)) {
26
+ if (!Object.hasOwnProperty.call(prev, key)) {
27
+ retv[key] = value;
28
+ }
29
+ }
30
+
31
+ return retv;
32
+ }
33
+
34
+ const newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...
35
+ const newGlobals2017 = {
36
+ Atomics: false,
37
+ SharedArrayBuffer: false
38
+ };
39
+ const newGlobals2020 = {
40
+ BigInt: false,
41
+ BigInt64Array: false,
42
+ BigUint64Array: false,
43
+ globalThis: false
44
+ };
45
+
46
+ const newGlobals2021 = {
47
+ AggregateError: false,
48
+ FinalizationRegistry: false,
49
+ WeakRef: false
50
+ };
51
+
52
+ //------------------------------------------------------------------------------
53
+ // Public Interface
54
+ //------------------------------------------------------------------------------
55
+
56
+ /** @type {Map<string, import("../lib/shared/types").Environment>} */
57
+ export default new Map(Object.entries({
58
+
59
+ // Language
60
+ builtin: {
61
+ globals: globals.es5
62
+ },
63
+ es6: {
64
+ globals: newGlobals2015,
65
+ parserOptions: {
66
+ ecmaVersion: 6
67
+ }
68
+ },
69
+ es2015: {
70
+ globals: newGlobals2015,
71
+ parserOptions: {
72
+ ecmaVersion: 6
73
+ }
74
+ },
75
+ es2016: {
76
+ globals: newGlobals2015,
77
+ parserOptions: {
78
+ ecmaVersion: 7
79
+ }
80
+ },
81
+ es2017: {
82
+ globals: { ...newGlobals2015, ...newGlobals2017 },
83
+ parserOptions: {
84
+ ecmaVersion: 8
85
+ }
86
+ },
87
+ es2018: {
88
+ globals: { ...newGlobals2015, ...newGlobals2017 },
89
+ parserOptions: {
90
+ ecmaVersion: 9
91
+ }
92
+ },
93
+ es2019: {
94
+ globals: { ...newGlobals2015, ...newGlobals2017 },
95
+ parserOptions: {
96
+ ecmaVersion: 10
97
+ }
98
+ },
99
+ es2020: {
100
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },
101
+ parserOptions: {
102
+ ecmaVersion: 11
103
+ }
104
+ },
105
+ es2021: {
106
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
107
+ parserOptions: {
108
+ ecmaVersion: 12
109
+ }
110
+ },
111
+ es2022: {
112
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
113
+ parserOptions: {
114
+ ecmaVersion: 13
115
+ }
116
+ },
117
+ es2023: {
118
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
119
+ parserOptions: {
120
+ ecmaVersion: 14
121
+ }
122
+ },
123
+ es2024: {
124
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
125
+ parserOptions: {
126
+ ecmaVersion: 15
127
+ }
128
+ },
129
+
130
+ // Platforms
131
+ browser: {
132
+ globals: globals.browser
133
+ },
134
+ node: {
135
+ globals: globals.node,
136
+ parserOptions: {
137
+ ecmaFeatures: {
138
+ globalReturn: true
139
+ }
140
+ }
141
+ },
142
+ "shared-node-browser": {
143
+ globals: globals["shared-node-browser"]
144
+ },
145
+ worker: {
146
+ globals: globals.worker
147
+ },
148
+ serviceworker: {
149
+ globals: globals.serviceworker
150
+ },
151
+
152
+ // Frameworks
153
+ commonjs: {
154
+ globals: globals.commonjs,
155
+ parserOptions: {
156
+ ecmaFeatures: {
157
+ globalReturn: true
158
+ }
159
+ }
160
+ },
161
+ amd: {
162
+ globals: globals.amd
163
+ },
164
+ mocha: {
165
+ globals: globals.mocha
166
+ },
167
+ jasmine: {
168
+ globals: globals.jasmine
169
+ },
170
+ jest: {
171
+ globals: globals.jest
172
+ },
173
+ phantomjs: {
174
+ globals: globals.phantomjs
175
+ },
176
+ jquery: {
177
+ globals: globals.jquery
178
+ },
179
+ qunit: {
180
+ globals: globals.qunit
181
+ },
182
+ prototypejs: {
183
+ globals: globals.prototypejs
184
+ },
185
+ shelljs: {
186
+ globals: globals.shelljs
187
+ },
188
+ meteor: {
189
+ globals: globals.meteor
190
+ },
191
+ mongo: {
192
+ globals: globals.mongo
193
+ },
194
+ protractor: {
195
+ globals: globals.protractor
196
+ },
197
+ applescript: {
198
+ globals: globals.applescript
199
+ },
200
+ nashorn: {
201
+ globals: globals.nashorn
202
+ },
203
+ atomtest: {
204
+ globals: globals.atomtest
205
+ },
206
+ embertest: {
207
+ globals: globals.embertest
208
+ },
209
+ webextensions: {
210
+ globals: globals.webextensions
211
+ },
212
+ greasemonkey: {
213
+ globals: globals.greasemonkey
214
+ }
215
+ }));