Skip to content

Commit 7863d26

Browse files
authored
fix: remove outdated types in ParserOptions.ecmaFeatures (#19944)
fix: remove outdated types `ParserOptions.ecmaFeatures.experimentalObjectRestSpread`
1 parent c565a53 commit 7863d26

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

‎lib/types/index.d.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,6 @@ export namespace Linter {
15971597
globalReturn?: boolean | undefined;
15981598
impliedStrict?: boolean | undefined;
15991599
jsx?: boolean | undefined;
1600-
experimentalObjectRestSpread?: boolean | undefined;
16011600
[key: string]: any;
16021601
}
16031602
| undefined;

‎tests/lib/types/types.test.ts‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -929,16 +929,6 @@ linter.verify(
929929
{ parserOptions: { ecmaVersion: 6, ecmaFeatures: { globalReturn: true } } },
930930
"test.js",
931931
);
932-
linter.verify(
933-
SOURCE,
934-
{
935-
parserOptions: {
936-
ecmaVersion: 6,
937-
ecmaFeatures: { experimentalObjectRestSpread: true },
938-
},
939-
},
940-
"test.js",
941-
);
942932
linter.verify(
943933
SOURCE,
944934
{
@@ -1358,16 +1348,6 @@ linterWithEslintrcConfig.verify(
13581348
{ parserOptions: { ecmaVersion: 6, ecmaFeatures: { globalReturn: true } } },
13591349
"test.js",
13601350
);
1361-
linterWithEslintrcConfig.verify(
1362-
SOURCE,
1363-
{
1364-
parserOptions: {
1365-
ecmaVersion: 6,
1366-
ecmaFeatures: { experimentalObjectRestSpread: true },
1367-
},
1368-
},
1369-
"test.js",
1370-
);
13711351
linterWithEslintrcConfig.verify(
13721352
SOURCE,
13731353
{

0 commit comments

Comments
 (0)