Skip to content

Commit 944d954

Browse files
update
1 parent e8b8d86 commit 944d954

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/playground/components/Configuration.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ export default function Configuration({
134134
value: ecmaFeature,
135135
label: ecmaFeature,
136136
}));
137-
const ECMAFeaturesOptionsForTypeScriptParser = ECMA_FEATURES.slice(
138-
0,
139-
-1,
140-
).map(ecmaFeature => ({
141-
value: ecmaFeature,
142-
label: ecmaFeature,
143-
}));
144137
const ECMAVersionsOptions = [
145138
defaultOption,
146139
...ECMA_VERSIONS.map(ecmaVersion => ({
@@ -383,7 +376,7 @@ export default function Configuration({
383376
theme={theme => customTheme(theme)}
384377
options={
385378
options.languageOptions.parser
386-
? ECMAFeaturesOptionsForTypeScriptParser
379+
? ECMAFeaturesOptions.slice(0, -1)
387380
: ECMAFeaturesOptions
388381
}
389382
onChange={selectedOptions => {

0 commit comments

Comments
 (0)