immosquare-cleaner 0.1.40 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/README.md +9 -3
  4. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1 -0
  5. data/node_modules/@eslint/config-array/dist/esm/index.js +1 -0
  6. data/node_modules/@eslint/config-array/package.json +2 -2
  7. data/node_modules/@eslint/eslintrc/node_modules/espree/LICENSE +25 -0
  8. data/node_modules/@eslint/eslintrc/node_modules/espree/README.md +244 -0
  9. data/node_modules/@eslint/eslintrc/node_modules/espree/dist/espree.cjs +883 -0
  10. data/node_modules/@eslint/eslintrc/node_modules/espree/espree.js +177 -0
  11. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/espree.js +349 -0
  12. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/features.js +27 -0
  13. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/options.js +123 -0
  14. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/token-translator.js +263 -0
  15. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/version.js +3 -0
  16. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/CHANGELOG.md +880 -0
  17. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/LICENSE +21 -0
  18. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/README.md +283 -0
  19. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/bin/acorn +4 -0
  20. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.mts +857 -0
  21. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.ts +857 -0
  22. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.js +6002 -0
  23. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.mjs +5973 -0
  24. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/bin.js +90 -0
  25. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/package.json +50 -0
  26. data/node_modules/@eslint/eslintrc/node_modules/espree/package.json +86 -0
  27. data/node_modules/@eslint/js/package.json +1 -1
  28. data/node_modules/@eslint-community/regexpp/index.d.ts +19 -5
  29. data/node_modules/@eslint-community/regexpp/index.js +138 -17
  30. data/node_modules/@eslint-community/regexpp/index.js.map +1 -1
  31. data/node_modules/@eslint-community/regexpp/index.mjs +138 -17
  32. data/node_modules/@eslint-community/regexpp/index.mjs.map +1 -1
  33. data/node_modules/@eslint-community/regexpp/package.json +1 -3
  34. data/node_modules/acorn/CHANGELOG.md +24 -0
  35. data/node_modules/acorn/README.md +5 -6
  36. data/node_modules/acorn/dist/acorn.d.mts +8 -9
  37. data/node_modules/acorn/dist/acorn.d.ts +8 -9
  38. data/node_modules/acorn/dist/acorn.js +92 -29
  39. data/node_modules/acorn/dist/acorn.mjs +92 -29
  40. data/node_modules/acorn/package.json +3 -3
  41. data/node_modules/eslint/README.md +7 -8
  42. data/node_modules/eslint/conf/ecma-version.js +1 -1
  43. data/node_modules/eslint/conf/globals.js +6 -1
  44. data/node_modules/eslint/lib/cli.js +23 -2
  45. data/node_modules/eslint/lib/eslint/eslint-helpers.js +5 -0
  46. data/node_modules/eslint/lib/eslint/eslint.js +16 -2
  47. data/node_modules/eslint/lib/eslint/legacy-eslint.js +14 -0
  48. data/node_modules/eslint/lib/languages/js/index.js +10 -5
  49. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +16 -6
  50. data/node_modules/eslint/lib/linter/apply-disable-directives.js +6 -3
  51. data/node_modules/eslint/lib/linter/config-comment-parser.js +3 -16
  52. data/node_modules/eslint/lib/linter/linter.js +194 -149
  53. data/node_modules/eslint/lib/linter/node-event-generator.js +2 -4
  54. data/node_modules/eslint/lib/linter/vfile.js +7 -0
  55. data/node_modules/eslint/lib/options.js +13 -1
  56. data/node_modules/eslint/lib/rules/no-restricted-imports.js +12 -5
  57. data/node_modules/eslint/lib/rules/no-unused-vars.js +34 -32
  58. data/node_modules/eslint/lib/rules/no-useless-backreference.js +81 -31
  59. data/node_modules/eslint/lib/rules/utils/regular-expressions.js +1 -1
  60. data/node_modules/eslint/lib/shared/flags.js +26 -0
  61. data/node_modules/eslint/lib/shared/logging.js +10 -1
  62. data/node_modules/eslint/lib/shared/types.js +1 -1
  63. data/node_modules/eslint/package.json +9 -13
  64. data/node_modules/eslint-scope/dist/eslint-scope.cjs +2 -2
  65. data/node_modules/eslint-scope/lib/referencer.js +1 -1
  66. data/node_modules/eslint-scope/lib/version.js +1 -1
  67. data/node_modules/eslint-scope/package.json +2 -2
  68. data/node_modules/espree/README.md +5 -5
  69. data/node_modules/espree/dist/espree.cjs +62 -6
  70. data/node_modules/espree/espree.js +1 -4
  71. data/node_modules/espree/lib/options.js +3 -2
  72. data/node_modules/espree/lib/token-translator.js +1 -1
  73. data/node_modules/espree/lib/version.js +1 -1
  74. data/node_modules/espree/package.json +7 -7
  75. data/node_modules/js-tokens/CHANGELOG.md +17 -0
  76. data/node_modules/js-tokens/LICENSE +1 -1
  77. data/node_modules/js-tokens/README.md +25 -7
  78. data/node_modules/js-tokens/index.js +3 -3
  79. data/node_modules/js-tokens/package.json +5 -5
  80. data/node_modules/jscodeshift/CHANGELOG.md +5 -0
  81. data/node_modules/jscodeshift/bin/jscodeshift.js +1 -1
  82. data/node_modules/jscodeshift/package.json +1 -2
  83. data/node_modules/jscodeshift/website/index.htm +9 -0
  84. data/node_modules/prettier/LICENSE +35 -34
  85. data/node_modules/prettier/doc.js +2 -2
  86. data/node_modules/prettier/doc.mjs +2 -2
  87. data/node_modules/prettier/index.cjs +8 -8
  88. data/node_modules/prettier/index.d.ts +1 -2
  89. data/node_modules/prettier/index.mjs +636 -704
  90. data/node_modules/prettier/internal/cli.mjs +4 -4
  91. data/node_modules/prettier/package.json +1 -1
  92. data/node_modules/prettier/plugins/acorn.js +14 -12
  93. data/node_modules/prettier/plugins/acorn.mjs +14 -12
  94. data/node_modules/prettier/plugins/angular.js +1 -1
  95. data/node_modules/prettier/plugins/angular.mjs +1 -1
  96. data/node_modules/prettier/plugins/babel.js +10 -11
  97. data/node_modules/prettier/plugins/babel.mjs +10 -11
  98. data/node_modules/prettier/plugins/estree.js +27 -27
  99. data/node_modules/prettier/plugins/estree.mjs +27 -27
  100. data/node_modules/prettier/plugins/flow.js +15 -16
  101. data/node_modules/prettier/plugins/flow.mjs +15 -16
  102. data/node_modules/prettier/plugins/glimmer.js +5 -5
  103. data/node_modules/prettier/plugins/glimmer.mjs +5 -5
  104. data/node_modules/prettier/plugins/graphql.js +8 -8
  105. data/node_modules/prettier/plugins/graphql.mjs +8 -8
  106. data/node_modules/prettier/plugins/html.js +17 -17
  107. data/node_modules/prettier/plugins/html.mjs +17 -17
  108. data/node_modules/prettier/plugins/markdown.js +44 -44
  109. data/node_modules/prettier/plugins/markdown.mjs +44 -44
  110. data/node_modules/prettier/plugins/meriyah.js +4 -5
  111. data/node_modules/prettier/plugins/meriyah.mjs +4 -5
  112. data/node_modules/prettier/plugins/postcss.js +26 -26
  113. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  114. data/node_modules/prettier/plugins/typescript.js +15 -20
  115. data/node_modules/prettier/plugins/typescript.mjs +15 -20
  116. data/node_modules/prettier/plugins/yaml.js +6 -6
  117. data/node_modules/prettier/plugins/yaml.mjs +6 -6
  118. data/node_modules/prettier/standalone.js +31 -30
  119. data/node_modules/prettier/standalone.mjs +28 -27
  120. data/package.json +4 -4
  121. metadata +24 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b722f837bf4633a4ea80c5d096319726c1e1b350738bc3a5e2dbdab6477ccf16
4
- data.tar.gz: b4acb46d17dda9c1f8d27da10e4af44f138b94f825b960d33d7712a348bc2d04
3
+ metadata.gz: 01c82857d6da3a08c5bf4e97043e83be5efc05b60108e68a0ea7e94d20e676c0
4
+ data.tar.gz: 9f5e5070a54b139726ef1588608c08f9cf64d10e1f967647504bf0c30d26a2ea
5
5
  SHA512:
6
- metadata.gz: 67ae2b68409ef6a994e8547e890fd79b164e557564bb3eafc3a384788d4fabb565685e1a2d10673b6a0d239a7421c075e9cd3fc428ac9dc66e8813ac20099c7f
7
- data.tar.gz: 20708eb32d730aa3f40501d79da27eccc4ff484ce55aa956e396cd21b416a14994d38b99e99f599f3178f95016c48c2a6635f28ab396778474d32196e297ddd6
6
+ metadata.gz: 9a47d76e8bc9d738453ffc11e051b10c7286f42eedc0e81851beb1e204f9d785db4ef50eaf8e9c73e4fec0df5906c46d03e0a29546e97d2a948b7a73518abd07
7
+ data.tar.gz: 2bbda26c51caa36b710673bf1d1d5d14c6aa2b85ed99e56820b9e8256ac110b0c9a28d8a78458e39425d31c584fa4a1495c406bb601b81d65daf19987e7ad4db
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.40".freeze
2
+ VERSION = "0.1.41".freeze
3
3
  end
@@ -346,8 +346,14 @@ The following companies, organizations, and individuals support ESLint's ongoing
346
346
  <!-- NOTE: This section is autogenerated. Do not manually edit.-->
347
347
  <!--sponsorsstart-->
348
348
  <h3>Platinum Sponsors</h3>
349
- <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="undefined"></a></p><h3>Gold Sponsors</h3>
350
- <p><a href="#"><img src="https://images.opencollective.com/guest-bf377e88/avatar.png" alt="Eli Schleifer" height="96"></a> <a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a></p><h3>Silver Sponsors</h3>
349
+ <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>
350
+ <p><a href="#"><img src="https://images.opencollective.com/guest-bf377e88/avatar.png" alt="Eli Schleifer" height="96"></a> <a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a></p><h3>Silver Sponsors</h3>
351
351
  <p><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?v=4" alt="American Express" height="64"></a> <a href="https://www.workleap.com"><img src="https://avatars.githubusercontent.com/u/53535748?u=d1e55d7661d724bf2281c1bfd33cb8f99fe2465f&v=4" alt="Workleap" height="64"></a></p><h3>Bronze Sponsors</h3>
352
- <p><a href="https://www.notion.so"><img src="https://images.opencollective.com/notion/bf3b117/logo.png" alt="notion" 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.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a></p>
352
+ <p><a href="https://www.notion.so"><img src="https://images.opencollective.com/notion/bf3b117/logo.png" alt="notion" 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.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://usenextbase.com"><img src="https://avatars.githubusercontent.com/u/145838380?v=4" alt="Nextbase Starter Kit" height="32"></a></p>
353
353
  <!--sponsorsend-->
354
+
355
+ <!--techsponsorsstart-->
356
+ <h2>Technology Sponsors</h2>
357
+ <p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a>
358
+ </p>
359
+ <!--techsponsorsend-->
@@ -206,6 +206,7 @@ const negatedMinimatchCache = new Map();
206
206
  const MINIMATCH_OPTIONS = {
207
207
  // matchBase: true,
208
208
  dot: true,
209
+ allowWindowsEscape: true,
209
210
  };
210
211
 
211
212
  /**
@@ -205,6 +205,7 @@ const negatedMinimatchCache = new Map();
205
205
  const MINIMATCH_OPTIONS = {
206
206
  // matchBase: true,
207
207
  dot: true,
208
+ allowWindowsEscape: true,
208
209
  };
209
210
 
210
211
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint/config-array",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "General purpose glob-based configuration matching.",
5
5
  "author": "Nicholas C. Zakas",
6
6
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@eslint/object-schema": "^2.1.4",
50
50
  "debug": "^4.3.1",
51
- "minimatch": "^3.0.5"
51
+ "minimatch": "^3.1.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/minimatch": "^3.0.5",
@@ -0,0 +1,25 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) Open JS Foundation
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,244 @@
1
+ [![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree)
2
+ [![npm downloads](https://img.shields.io/npm/dm/espree.svg)](https://www.npmjs.com/package/espree)
3
+ [![Build Status](https://github.com/eslint/espree/workflows/CI/badge.svg)](https://github.com/eslint/espree/actions)
4
+ [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=9348450)](https://www.bountysource.com/trackers/9348450-eslint?utm_source=9348450&utm_medium=shield&utm_campaign=TRACKER_BADGE)
5
+
6
+ # Espree
7
+
8
+ Espree started out as a fork of [Esprima](http://esprima.org) v1.2.2, the last stable published released of Esprima before work on ECMAScript 6 began. Espree is now built on top of [Acorn](https://github.com/ternjs/acorn), which has a modular architecture that allows extension of core functionality. The goal of Espree is to produce output that is similar to Esprima with a similar API so that it can be used in place of Esprima.
9
+
10
+ ## Usage
11
+
12
+ Install:
13
+
14
+ ```
15
+ npm i espree
16
+ ```
17
+
18
+ To use in an ESM file:
19
+
20
+ ```js
21
+ import * as espree from "espree";
22
+
23
+ const ast = espree.parse(code);
24
+ ```
25
+
26
+ To use in a Common JS file:
27
+
28
+ ```js
29
+ const espree = require("espree");
30
+
31
+ const ast = espree.parse(code);
32
+ ```
33
+
34
+ ## API
35
+
36
+ ### `parse()`
37
+
38
+ `parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters.
39
+
40
+ - `code` [string]() - the code which needs to be parsed.
41
+ - `options (Optional)` [Object]() - read more about this [here](#options).
42
+
43
+ ```js
44
+ import * as espree from "espree";
45
+
46
+ const ast = espree.parse(code);
47
+ ```
48
+
49
+ **Example :**
50
+
51
+ ```js
52
+ const ast = espree.parse('let foo = "bar"', { ecmaVersion: 6 });
53
+ console.log(ast);
54
+ ```
55
+
56
+ <details><summary>Output</summary>
57
+ <p>
58
+
59
+ ```
60
+ Node {
61
+ type: 'Program',
62
+ start: 0,
63
+ end: 15,
64
+ body: [
65
+ Node {
66
+ type: 'VariableDeclaration',
67
+ start: 0,
68
+ end: 15,
69
+ declarations: [Array],
70
+ kind: 'let'
71
+ }
72
+ ],
73
+ sourceType: 'script'
74
+ }
75
+ ```
76
+
77
+ </p>
78
+ </details>
79
+
80
+ ### `tokenize()`
81
+
82
+ `tokenize` returns the tokens of a given code. It takes two parameters.
83
+
84
+ - `code` [string]() - the code which needs to be parsed.
85
+ - `options (Optional)` [Object]() - read more about this [here](#options).
86
+
87
+ Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array
88
+
89
+ **Example :**
90
+
91
+ ```js
92
+ import * as espree from "espree";
93
+
94
+ const tokens = espree.tokenize('let foo = "bar"', { ecmaVersion: 6 });
95
+ console.log(tokens);
96
+ ```
97
+
98
+ <details><summary>Output</summary>
99
+ <p>
100
+
101
+ ```
102
+ Token { type: 'Keyword', value: 'let', start: 0, end: 3 },
103
+ Token { type: 'Identifier', value: 'foo', start: 4, end: 7 },
104
+ Token { type: 'Punctuator', value: '=', start: 8, end: 9 },
105
+ Token { type: 'String', value: '"bar"', start: 10, end: 15 }
106
+ ```
107
+
108
+ </p>
109
+ </details>
110
+
111
+ ### `version`
112
+
113
+ Returns the current `espree` version
114
+
115
+ ### `VisitorKeys`
116
+
117
+ Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/eslint-visitor-keys)
118
+
119
+ ### `latestEcmaVersion`
120
+
121
+ Returns the latest ECMAScript supported by `espree`
122
+
123
+ ### `supportedEcmaVersions`
124
+
125
+ Returns an array of all supported ECMAScript versions
126
+
127
+ ## Options
128
+
129
+ ```js
130
+ const options = {
131
+ // attach range information to each node
132
+ range: false,
133
+
134
+ // attach line/column location information to each node
135
+ loc: false,
136
+
137
+ // create a top-level comments array containing all comments
138
+ comment: false,
139
+
140
+ // create a top-level tokens array containing all tokens
141
+ tokens: false,
142
+
143
+ // Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14 or 15 to specify the version of ECMAScript syntax you want to use.
144
+ // You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14) or 2024 (same as 15) to use the year-based naming.
145
+ // You can also set "latest" to use the most recently supported version.
146
+ ecmaVersion: 3,
147
+
148
+ allowReserved: true, // only allowed when ecmaVersion is 3
149
+
150
+ // specify which type of script you're parsing ("script", "module", or "commonjs")
151
+ sourceType: "script",
152
+
153
+ // specify additional language features
154
+ ecmaFeatures: {
155
+
156
+ // enable JSX parsing
157
+ jsx: false,
158
+
159
+ // enable return in global scope (set to true automatically when sourceType is "commonjs")
160
+ globalReturn: false,
161
+
162
+ // enable implied strict mode (if ecmaVersion >= 5)
163
+ impliedStrict: false
164
+ }
165
+ }
166
+ ```
167
+
168
+ ## Esprima Compatibility Going Forward
169
+
170
+ The primary goal is to produce the exact same AST structure and tokens as Esprima, and that takes precedence over anything else. (The AST structure being the [ESTree](https://github.com/estree/estree) API with JSX extensions.) Separate from that, Espree may deviate from what Esprima outputs in terms of where and how comments are attached, as well as what additional information is available on AST nodes. That is to say, Espree may add more things to the AST nodes than Esprima does but the overall AST structure produced will be the same.
171
+
172
+ Espree may also deviate from Esprima in the interface it exposes.
173
+
174
+ ## Contributing
175
+
176
+ Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/espree/issues).
177
+
178
+ Espree is licensed under a permissive BSD 2-clause license.
179
+
180
+ ## Security Policy
181
+
182
+ We work hard to ensure that Espree is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md).
183
+
184
+ ## Build Commands
185
+
186
+ * `npm test` - run all tests
187
+ * `npm run lint` - run all linting
188
+
189
+ ## Differences from Espree 2.x
190
+
191
+ * The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics.
192
+ * Trailing whitespace no longer is counted as part of a node.
193
+ * `let` and `const` declarations are no longer parsed by default. You must opt-in by using an `ecmaVersion` newer than `5` or setting `sourceType` to `module`.
194
+ * The `esparse` and `esvalidate` binary scripts have been removed.
195
+ * There is no `tolerant` option. We will investigate adding this back in the future.
196
+
197
+ ## Known Incompatibilities
198
+
199
+ In an effort to help those wanting to transition from other parsers to Espree, the following is a list of noteworthy incompatibilities with other parsers. These are known differences that we do not intend to change.
200
+
201
+ ### Esprima 1.2.2
202
+
203
+ * Esprima counts trailing whitespace as part of each AST node while Espree does not. In Espree, the end of a node is where the last token occurs.
204
+ * Espree does not parse `let` and `const` declarations by default.
205
+ * Error messages returned for parsing errors are different.
206
+ * There are two addition properties on every node and token: `start` and `end`. These represent the same data as `range` and are used internally by Acorn.
207
+
208
+ ### Esprima 2.x
209
+
210
+ * Esprima 2.x uses a different comment attachment algorithm that results in some comments being added in different places than Espree. The algorithm Espree uses is the same one used in Esprima 1.2.2.
211
+
212
+ ## Frequently Asked Questions
213
+
214
+ ### Why another parser
215
+
216
+ [ESLint](http://eslint.org) had been relying on Esprima as its parser from the beginning. While that was fine when the JavaScript language was evolving slowly, the pace of development increased dramatically and Esprima had fallen behind. ESLint, like many other tools reliant on Esprima, has been stuck in using new JavaScript language features until Esprima updates, and that caused our users frustration.
217
+
218
+ We decided the only way for us to move forward was to create our own parser, bringing us inline with JSHint and JSLint, and allowing us to keep implementing new features as we need them. We chose to fork Esprima instead of starting from scratch in order to move as quickly as possible with a compatible API.
219
+
220
+ With Espree 2.0.0, we are no longer a fork of Esprima but rather a translation layer between Acorn and Esprima syntax. This allows us to put work back into a community-supported parser (Acorn) that is continuing to grow and evolve while maintaining an Esprima-compatible parser for those utilities still built on Esprima.
221
+
222
+ ### Have you tried working with Esprima?
223
+
224
+ Yes. Since the start of ESLint, we've regularly filed bugs and feature requests with Esprima and will continue to do so. However, there are some different philosophies around how the projects work that need to be worked through. The initial goal was to have Espree track Esprima and eventually merge the two back together, but we ultimately decided that building on top of Acorn was a better choice due to Acorn's plugin support.
225
+
226
+ ### Why don't you just use Acorn?
227
+
228
+ Acorn is a great JavaScript parser that produces an AST that is compatible with Esprima. Unfortunately, ESLint relies on more than just the AST to do its job. It relies on Esprima's tokens and comment attachment features to get a complete picture of the source code. We investigated switching to Acorn, but the inconsistencies between Esprima and Acorn created too much work for a project like ESLint.
229
+
230
+ We are building on top of Acorn, however, so that we can contribute back and help make Acorn even better.
231
+
232
+ ### What ECMAScript features do you support?
233
+
234
+ Espree supports all ECMAScript 2023 features and partially supports ECMAScript 2024 features.
235
+
236
+ Because ECMAScript 2024 is still under development, we are implementing features as they are finalized. Currently, Espree supports:
237
+
238
+ * [RegExp v flag with set notation + properties of strings](https://github.com/tc39/proposal-regexp-v-flag)
239
+
240
+ See [finished-proposals.md](https://github.com/tc39/proposals/blob/master/finished-proposals.md) to know what features are finalized.
241
+
242
+ ### How do you determine which experimental features to support?
243
+
244
+ In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features.