text
@@ -2813,7 +2813,7 @@ const Component = () => (
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: `
\t text
diff --git a/tests/lib/rules/jsx-no-useless-fragment.js b/tests/lib/rules/jsx-no-useless-fragment.js
index d794d2d157..22594aa6bf 100644
--- a/tests/lib/rules/jsx-no-useless-fragment.js
+++ b/tests/lib/rules/jsx-no-useless-fragment.js
@@ -86,7 +86,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
options: [{ allowExpressions: true }],
},
]),
- invalid: parsers.all([
+ invalid: parsers.all([].concat(
{
code: '<>>',
output: null,
@@ -99,7 +99,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
errors: [{ messageId: 'NeedsMoreChildren', type: 'JSXFragment' }],
features: ['fragment'],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
moo<>foo>
',
output: '
moofoo
',
errors: [
@@ -114,7 +114,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
errors: [{ messageId: 'NeedsMoreChildren' }],
features: ['fragment'],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
<>{meow}>
',
output: '
{meow}
',
errors: [
@@ -177,7 +177,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
errors: [{ messageId: 'NeedsMoreChildren', type: 'JSXFragment' }],
features: ['fragment', 'no-ts-old'], // TODO: FIXME: remove no-ts-old
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
<>foo>
',
output: '
foo
',
errors: [
@@ -247,7 +247,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
errors: [{ messageId: 'ChildOfHtmlElement', type: 'JSXFragment' }],
features: ['fragment', 'no-ts-old'], // TODO: FIXME: remove no-ts-old
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: `
const Comp = () => (
@@ -274,6 +274,6 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
errors: [{ messageId: 'NeedsMoreChildren', type: 'JSXFragment' }],
output: '
{moo}',
features: ['fragment', 'no-ts-old'], // TODO: FIXME: remove no-ts-old
- },
- ]),
+ }
+ )),
});
diff --git a/tests/lib/rules/no-invalid-html-attribute.js b/tests/lib/rules/no-invalid-html-attribute.js
index 3c3aace4a9..aae4c39253 100644
--- a/tests/lib/rules/no-invalid-html-attribute.js
+++ b/tests/lib/rules/no-invalid-html-attribute.js
@@ -234,7 +234,7 @@ ruleTester.run('no-invalid-html-attribute', rule, {
code: '
',
},
]),
- invalid: parsers.all([
+ invalid: parsers.all([].concat(
{
code: '
',
errors: [
@@ -713,7 +713,7 @@ ruleTester.run('no-invalid-html-attribute', rule, {
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
',
errors: [
{
@@ -782,7 +782,7 @@ ruleTester.run('no-invalid-html-attribute', rule, {
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
',
errors: [
{
@@ -913,7 +913,7 @@ ruleTester.run('no-invalid-html-attribute', rule, {
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
',
errors: [
{
@@ -957,7 +957,7 @@ ruleTester.run('no-invalid-html-attribute', rule, {
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: '
',
errors: [
{
@@ -1832,6 +1832,6 @@ ruleTester.run('no-invalid-html-attribute', rule, {
type: 'Literal',
},
],
- },
- ]),
+ }
+ )),
});
diff --git a/tests/lib/rules/no-typos.js b/tests/lib/rules/no-typos.js
index 6342563128..ee68f3407e 100644
--- a/tests/lib/rules/no-typos.js
+++ b/tests/lib/rules/no-typos.js
@@ -1873,7 +1873,7 @@ ruleTester.run('no-typos', rule, {
},
],
},
- {
+ parsers.skipDueToMultiErrorSorting ? [] : {
code: `
class Hello extends React.Component {
GetDerivedStateFromProps() { }