11import { describe , it , expect } from 'vitest' ;
2- import { ESLint , type Linter } from 'eslint' ;
2+ import { ESLint } from 'eslint' ;
33import * as jsoncParser from 'jsonc-eslint-parser' ;
44import json from '@eslint/json' ;
55import plugin from './main.js' ;
@@ -15,7 +15,7 @@ describe('main plugin', () => {
1515 parser : jsoncParser
1616 }
1717 } ,
18- plugin . configs ! . recommended as Linter . Config
18+ plugin . configs . recommended
1919 ]
2020 } ) ;
2121
@@ -41,7 +41,7 @@ describe('main plugin', () => {
4141 } ,
4242 language : 'json/json'
4343 } ,
44- plugin . configs ! . recommended as Linter . Config
44+ plugin . configs . recommended
4545 ]
4646 } ) ;
4747
@@ -55,4 +55,11 @@ describe('main plugin', () => {
5555 expect ( results [ 0 ] ! . messages ) . toHaveLength ( 0 ) ;
5656 expect ( results [ 0 ] ! . filePath ) . toContain ( 'package.json' ) ;
5757 } ) ;
58+
59+ it ( 'should export valid config types' , ( ) => {
60+ expect ( plugin . configs . recommended ) . toBeDefined ( ) ;
61+ expect ( plugin . configs . modernization ) . toBeDefined ( ) ;
62+ expect ( plugin . configs . moduleReplacements ) . toBeDefined ( ) ;
63+ expect ( plugin . configs . performanceImprovements ) . toBeDefined ( ) ;
64+ } ) ;
5865} ) ;
0 commit comments