@@ -3,7 +3,7 @@ import { createNewConfiguration } from "./createNewConfiguration";
33import { ConfigConversionResults } from "../rules/convertRules" ;
44
55describe ( "createNewConfiguration" , ( ) => {
6- it ( "writes only formatted rules when there are no missing rules" , async ( ) => {
6+ it ( "excludes the tslint plugin when there are no missing rules" , async ( ) => {
77 // Arrange
88 const conversionResults : ConfigConversionResults = {
99 ...emptyConversionResults ,
@@ -17,7 +17,17 @@ describe("createNewConfiguration", () => {
1717 // Assert
1818 expect ( writeFile ) . toHaveBeenLastCalledWith (
1919 ".eslintrc.json" ,
20- JSON . stringify ( { rules : { } } , undefined , 4 ) ,
20+ JSON . stringify (
21+ {
22+ parser : "@typescript-eslint/parser" ,
23+ parserOptions : {
24+ project : "tsconfig.json" ,
25+ } ,
26+ rules : { } ,
27+ } ,
28+ undefined ,
29+ 4 ,
30+ ) ,
2131 ) ;
2232 } ) ;
2333
@@ -44,11 +54,11 @@ describe("createNewConfiguration", () => {
4454 ".eslintrc.json" ,
4555 JSON . stringify (
4656 {
47- plugins : [ "@typescript-eslint/tslint" ] ,
4857 parser : "@typescript-eslint/parser" ,
4958 parserOptions : {
5059 project : "tsconfig.json" ,
5160 } ,
61+ plugins : [ "@typescript-eslint/tslint" ] ,
5262 rules : {
5363 "@typescript-eslint/tslint/config" : [
5464 "error" ,
0 commit comments