Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions types/espree/espree-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ const full_options: Options = {
};

const empty_options: Options = {};

const latest_options: Options = {
ecmaVersion: 16,
};
6 changes: 4 additions & 2 deletions types/espree/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export interface Options {
tokens?: boolean;

/**
* 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.
* 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.
* Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16 to specify the version of ECMAScript syntax you want to use.
* 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), 2024 (same as 15) or 2025 (same as 16) to use the year-based naming.
* You can also set "latest" to use the most recently supported version.
*/
ecmaVersion?:
Expand All @@ -76,6 +76,7 @@ export interface Options {
| 13
| 14
| 15
| 16
| 2015
| 2016
| 2017
Expand All @@ -86,6 +87,7 @@ export interface Options {
| 2022
| 2023
| 2024
| 2025
| "latest";

/**
Expand Down
4 changes: 2 additions & 2 deletions types/espree/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/espree",
"version": "10.0.9999",
"version": "10.1.9999",
"type": "module",
"exports": {
".": {
Expand All @@ -14,7 +14,7 @@
"https://github.com/eslint/espree"
],
"dependencies": {
"acorn": "^8.11.3",
"acorn": "^8.12.0",
"eslint-visitor-keys": "^4.0.0"
},
"devDependencies": {
Expand Down