22 * @author Toru Nagashima <https://github.com/mysticatea>
33 * See LICENSE file in root directory for full license.
44 */
5- "use strict"
65
7- const assert = require ( "assert" )
8- const { parseForESLint } = require ( "../src" )
9- const eslint = require ( "eslint" )
10- const Linter = eslint . Linter
6+ import { describe , it , assert } from "vitest"
7+ import { parseForESLint } from "../src"
8+ import { Linter } from "eslint"
119
1210describe ( "parserOptions" , ( ) => {
1311 describe ( "parser" , ( ) => {
@@ -33,7 +31,7 @@ describe("parserOptions", () => {
3331 it ( "false then skip parsing '<script>'." , ( ) => {
3432 const code = `<template>Hello</template>
3533<script>This is syntax error</script>`
36- const config = {
34+ const config : Linter . Config = {
3735 files : [ "*.vue" ] ,
3836 plugins : {
3937 vue : plugin ,
@@ -57,7 +55,7 @@ describe("parserOptions", () => {
5755 it ( "Fail in <script setup> with sourceType: script." , ( ) => {
5856 const code = `<template>Hello</template>
5957<script setup>import Foo from './foo'</script>`
60- const config = {
58+ const config : Linter . Config = {
6159 files : [ "*.vue" ] ,
6260 plugins : {
6361 vue : plugin ,
0 commit comments