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";
12
12
export class ESLintGenerator extends Generator {
13
13
generateConfigs ( userConfigs : InquirerConfigs ) : [ object , string [ ] ] {
14
14
const configs : any = eslintBaseConfigs ;
15
- const packages = [ ] ;
15
+ const packages = [ "eslint" ] ;
16
16
17
17
if ( userConfigs . environment . includes ( "browser" ) ) {
18
18
configs . env . browser = true ;
@@ -49,12 +49,12 @@ export class ESLintGenerator extends Generator {
49
49
...configs . rules ,
50
50
"flowtype/no-types-missing-file-annotation" : "off" ,
51
51
} ;
52
- packages . push ( "eslint-plugin-flowtype" ) ;
52
+ packages . push ( "babel-eslint" , " eslint-plugin-flowtype") ;
53
53
} else if ( userConfigs . typescript ) {
54
54
configs . extends . push ( "plugin:@typescript-eslint/recommended" ) ;
55
55
configs . parser = "@typescript-eslint/parser" ;
56
56
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" ) ;
58
58
}
59
59
60
60
if ( userConfigs . module === "esm" ) {
You can’t perform that action at this time.
0 commit comments