11import path from 'path'
22import fs from 'fs'
33import tmp from 'tmp'
4- import { ESLint } from 'eslint'
4+ import { ESLint , Linter } from 'eslint'
55
66import plugin from '../src'
77import recommended from 'config/recommended'
8+ import { SortingOrder } from 'common/options'
89import { typescript } from './helpers/configs'
910
1011describe ( 'autofix' , ( ) => {
@@ -16,14 +17,14 @@ describe('autofix', () => {
1617 [ recommended , 'autofix.output.ts' ] ,
1718 [
1819 {
19- ... recommended ,
20+ plugins : recommended . plugins ,
2021 rules : {
2122 ...recommended . rules ,
2223 'typescript-sort-keys/interface' : [
23- 'error' ,
24- 'asc' ,
24+ 'error' as const ,
25+ SortingOrder . Ascending ,
2526 { caseSensitive : true , natural : true , requiredFirst : true } ,
26- ] ,
27+ ] as Linter . RuleEntry ,
2728 } ,
2829 } ,
2930 'requiredFirst.output.ts' ,
@@ -43,8 +44,6 @@ describe('autofix', () => {
4344 fs . writeFileSync ( testFilePath , input )
4445
4546 const eslint = new ESLint ( {
46- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
47- // @ts -ignore
4847 overrideConfig : {
4948 ...config ,
5049 parser : typescript . parser ,
0 commit comments