{{(( (( array )) instanceof (( Array )) )) ? array.join(" | ") : array}}
',
'',
'',
- ].map(code => ({code, parser: parsers.vue})),
+ ].map(code => ({code, languageOptions: {parser: parsers.vue}})),
],
});
diff --git a/test/no-null.mjs b/test/no-null.mjs
index 466df09529..40ce5d02c6 100644
--- a/test/no-null.mjs
+++ b/test/no-null.mjs
@@ -106,8 +106,10 @@ test.snapshot({
// #1146
test({
testerOptions: {
- parserOptions: {
- ecmaVersion: 2019,
+ languageOptions: {
+ parserOptions: {
+ ecmaVersion: 2019,
+ },
},
},
valid: [
diff --git a/test/no-static-only-class.mjs b/test/no-static-only-class.mjs
index e8d244046e..a74d41c37d 100644
--- a/test/no-static-only-class.mjs
+++ b/test/no-static-only-class.mjs
@@ -211,10 +211,12 @@ test.typescript({
test.babel({
testerOptions: {
- parserOptions: {
- babelOptions: {
- parserOpts: {
- plugins: ['classStaticBlock'],
+ languageOptions: {
+ parserOptions: {
+ babelOptions: {
+ parserOpts: {
+ plugins: ['classStaticBlock'],
+ },
},
},
},
diff --git a/test/no-unnecessary-await.mjs b/test/no-unnecessary-await.mjs
index 9ed31094b6..17cb005170 100644
--- a/test/no-unnecessary-await.mjs
+++ b/test/no-unnecessary-await.mjs
@@ -5,9 +5,11 @@ const {test} = getTester(import.meta);
test.snapshot({
testerOptions: {
- parserOptions: {
- ecmaFeatures: {
- jsx: true,
+ languageOptions: {
+ parserOptions: {
+ ecmaFeatures: {
+ jsx: true,
+ },
},
},
},
diff --git a/test/no-useless-undefined.mjs b/test/no-useless-undefined.mjs
index 110099c05f..c95c7dde35 100644
--- a/test/no-useless-undefined.mjs
+++ b/test/no-useless-undefined.mjs
@@ -36,7 +36,6 @@ test({
'assert.notPropertyVal(foo, "bar", undefined, message)',
'expect(foo).not(undefined)',
'expect(foo).to.have.property("bar", undefined)',
- 'expect(foo).to.have.property("bar", undefined)',
'expect(foo).toBe(undefined)',
'expect(foo).toContain(undefined)',
'expect(foo).toContainEqual(undefined)',
@@ -263,10 +262,12 @@ test({
code: 'return undefined;',
output: 'return;',
errors,
- parserOptions: {
- sourceType: 'script',
- ecmaFeatures: {
- globalReturn: true,
+ languageOptions: {
+ parserOptions: {
+ sourceType: 'script',
+ ecmaFeatures: {
+ globalReturn: true,
+ },
},
},
},
@@ -303,8 +304,6 @@ test.typescript({
'const foo = (): string => undefined;',
'const foo = function (): undefined {return undefined}',
'export function foo(): undefined {return undefined}',
- 'createContext