File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { Generator } from "./Generator";
1212export class ESLintGenerator extends Generator {
1313 generateConfigs ( userConfigs : InquirerConfigs ) : [ object , string [ ] ] {
1414 const configs : any = eslintBaseConfigs ;
15- const packages = [ ] ;
15+ const packages = [ "eslint" ] ;
1616
1717 if ( userConfigs . environment . includes ( "browser" ) ) {
1818 configs . env . browser = true ;
@@ -49,12 +49,12 @@ export class ESLintGenerator extends Generator {
4949 ...configs . rules ,
5050 "flowtype/no-types-missing-file-annotation" : "off" ,
5151 } ;
52- packages . push ( "eslint-plugin-flowtype" ) ;
52+ packages . push ( "babel-eslint" , " eslint-plugin-flowtype") ;
5353 } else if ( userConfigs . typescript ) {
5454 configs . extends . push ( "plugin:@typescript-eslint/recommended" ) ;
5555 configs . parser = "@typescript-eslint/parser" ;
5656 configs . plugins . push ( "@typescript-eslint" ) ;
57- packages . push ( "@typescript-eslint/eslint-plugin" , "@typescript-eslint/parser" ) ;
57+ packages . push ( "typescript" , " @typescript-eslint/eslint-plugin", "@typescript-eslint/parser" ) ;
5858 }
5959
6060 if ( userConfigs . module === "esm" ) {
You can’t perform that action at this time.
0 commit comments