@@ -214,9 +214,9 @@ foo ? bar : (baz || qux);
214214
215215Examples of ** correct** code for this rule with the ` all ` and ` { "ignoreJSX": "all" } ` options:
216216
217- ::: correct
217+ ::: correct { "ecmaFeatures": { "jsx": true } }
218218
219- ``` js
219+ ``` jsx
220220/* eslint no-extra-parens: ["error", "all", { ignoreJSX: "all" }] */
221221const Component = (< div / > )
222222const Component = (
@@ -230,9 +230,9 @@ const Component = (
230230
231231Examples of ** incorrect** code for this rule with the ` all ` and ` { "ignoreJSX": "multi-line" } ` options:
232232
233- ::: incorrect
233+ ::: incorrect { "ecmaFeatures": { "jsx": true } }
234234
235- ``` js
235+ ``` jsx
236236/* eslint no-extra-parens: ["error", "all", { ignoreJSX: "multi-line" }] */
237237const Component = (< div / > )
238238const Component = (< div>< p / >< / div> )
@@ -242,9 +242,9 @@ const Component = (<div><p /></div>)
242242
243243Examples of ** correct** code for this rule with the ` all ` and ` { "ignoreJSX": "multi-line" } ` options:
244244
245- ::: correct
245+ ::: correct { "ecmaFeatures": { "jsx": true } }
246246
247- ``` js
247+ ``` jsx
248248/* eslint no-extra-parens: ["error", "all", { ignoreJSX: "multi-line" }] */
249249const Component = (
250250 < div>
@@ -262,9 +262,9 @@ const Component = (
262262
263263Examples of ** incorrect** code for this rule with the ` all ` and ` { "ignoreJSX": "single-line" } ` options:
264264
265- ::: incorrect
265+ ::: incorrect { "ecmaFeatures": { "jsx": true } }
266266
267- ``` js
267+ ``` jsx
268268/* eslint no-extra-parens: ["error", "all", { ignoreJSX: "single-line" }] */
269269const Component = (
270270 < div>
@@ -282,9 +282,9 @@ const Component = (
282282
283283Examples of ** correct** code for this rule with the ` all ` and ` { "ignoreJSX": "single-line" } ` options:
284284
285- ::: correct
285+ ::: correct { "ecmaFeatures": { "jsx": true } }
286286
287- ``` js
287+ ``` jsx
288288/* eslint no-extra-parens: ["error", "all", { ignoreJSX: "single-line" }] */
289289const Component = (< div / > )
290290const Component = (< div>< p / >< / div> )
0 commit comments