Skip to content

Commit e8b8d86

Browse files
remove impliedStrict for typescript parser
1 parent 274e8f8 commit e8b8d86

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/playground/components/Configuration.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ 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+
}));
137144
const ECMAVersionsOptions = [
138145
defaultOption,
139146
...ECMA_VERSIONS.map(ecmaVersion => ({
@@ -374,7 +381,11 @@ export default function Configuration({
374381
isSearchable={false}
375382
styles={customStyles}
376383
theme={theme => customTheme(theme)}
377-
options={ECMAFeaturesOptions}
384+
options={
385+
options.languageOptions.parser
386+
? ECMAFeaturesOptionsForTypeScriptParser
387+
: ECMAFeaturesOptions
388+
}
378389
onChange={selectedOptions => {
379390
options.languageOptions.parserOptions.ecmaFeatures =
380391
{};

0 commit comments

Comments
 (0)