File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1- import globals from "globals" ;
21import { defineConfig } from "eslint/config" ;
2+ // eslint-disable-next-line n/no-extraneous-import, import/no-extraneous-dependencies
3+ import globals from "globals" ;
34
45export default defineConfig ( {
56 languageOptions : {
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import pack from "./utils/pack";
55describe ( "fail on config" , ( ) => {
66 it ( "fails when .eslintrc is not a proper format" , async ( ) => {
77 const overrideConfigFile = join ( __dirname , ".badeslintrc" ) ;
8- const compiler = pack ( "error" , { overrideConfigFile } ) ;
8+ const compiler = pack ( "error" , {
9+ configType : "eslintrc" ,
10+ overrideConfigFile,
11+ } ) ;
912
1013 const stats = await compiler . runAsync ( ) ;
1114 const { errors } = stats . compilation ;
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ class ESLintMock {
3232 }
3333}
3434
35+ ESLintMock . version = "9" ;
36+
3537module . exports = {
3638 ESLint : ESLintMock ,
39+ loadESLint : async ( ) => ESLintMock ,
3740} ;
You can’t perform that action at this time.
0 commit comments