@@ -45,64 +45,62 @@ public class EslintFormatterStep {
45
45
46
46
public static final String NAME = "eslint-format" ;
47
47
48
- public static final String DEFAULT_ESLINT_VERSION = "8.28 .0" ;
48
+ public static final String DEFAULT_ESLINT_VERSION = "^8.30 .0" ;
49
49
50
50
public enum PopularStyleGuide {
51
51
TS_STANDARD_WITH_TYPESCRIPT ("standard-with-typescript" ) {
52
52
@ Override
53
53
public Map <String , String > devDependencies () {
54
54
Map <String , String > dependencies = new LinkedHashMap <>();
55
- dependencies .put ("eslint-config-standard-with-typescript" , "23.0.0" );
56
- dependencies .put ("eslint-plugin-import" , "2.26.0" );
57
- dependencies .put ("eslint-plugin-n" , "15.5.1" );
58
- dependencies .put ("eslint-plugin-promise" , "6.1.1" );
59
- dependencies .put ("typescript" , "4.9.3" );
55
+ dependencies .put ("eslint-config-standard-with-typescript" , "^24.0.0" );
56
+ dependencies .put ("eslint-plugin-import" , "^2.26.0" );
57
+ dependencies .put ("eslint-plugin-n" , "^15.6.0" );
58
+ dependencies .put ("eslint-plugin-promise" , "^6.1.1" );
60
59
return dependencies ;
61
60
}
62
61
},
63
62
TS_XO_TYPESCRIPT ("xo-typescript" ) {
64
63
@ Override
65
64
public Map <String , String > devDependencies () {
66
65
Map <String , String > dependencies = new LinkedHashMap <>();
67
- dependencies .put ("eslint-config-xo" , "0.43.1" );
68
- dependencies .put ("eslint-config-xo-typescript" , "0.55.1" );
69
- dependencies .put ("typescript" , "4.9.3" );
66
+ dependencies .put ("eslint-config-xo" , "^0.43.1" );
67
+ dependencies .put ("eslint-config-xo-typescript" , "^0.55.1" );
70
68
return dependencies ;
71
69
}
72
70
},
73
71
JS_AIRBNB ("airbnb" ) {
74
72
@ Override
75
73
public Map <String , String > devDependencies () {
76
74
Map <String , String > dependencies = new LinkedHashMap <>();
77
- dependencies .put ("eslint-config-airbnb-base" , "15.0.0" );
78
- dependencies .put ("eslint-plugin-import" , "2.26.0" );
75
+ dependencies .put ("eslint-config-airbnb-base" , "^ 15.0.0" );
76
+ dependencies .put ("eslint-plugin-import" , "^ 2.26.0" );
79
77
return dependencies ;
80
78
}
81
79
},
82
80
JS_GOOGLE ("google" ) {
83
81
@ Override
84
82
public Map <String , String > devDependencies () {
85
83
Map <String , String > dependencies = new LinkedHashMap <>();
86
- dependencies .put ("eslint-config-google" , "0.14.0" );
84
+ dependencies .put ("eslint-config-google" , "^ 0.14.0" );
87
85
return dependencies ;
88
86
}
89
87
},
90
88
JS_STANDARD ("standard" ) {
91
89
@ Override
92
90
public Map <String , String > devDependencies () {
93
91
Map <String , String > dependencies = new LinkedHashMap <>();
94
- dependencies .put ("eslint-config-standard" , "17.0.0" );
95
- dependencies .put ("eslint-plugin-import" , "2.26.0" );
96
- dependencies .put ("eslint-plugin-n" , "15.6.0" );
97
- dependencies .put ("eslint-plugin-promise" , "6.1.1" );
92
+ dependencies .put ("eslint-config-standard" , "^ 17.0.0" );
93
+ dependencies .put ("eslint-plugin-import" , "^ 2.26.0" );
94
+ dependencies .put ("eslint-plugin-n" , "^ 15.6.0" );
95
+ dependencies .put ("eslint-plugin-promise" , "^ 6.1.1" );
98
96
return dependencies ;
99
97
}
100
98
},
101
99
JS_XO ("xo" ) {
102
100
@ Override
103
101
public Map <String , String > devDependencies () {
104
102
Map <String , String > dependencies = new LinkedHashMap <>();
105
- dependencies .put ("eslint-config-xo" , "0.43.1" );
103
+ dependencies .put ("eslint-config-xo" , "^ 0.43.1" );
106
104
return dependencies ;
107
105
}
108
106
};
@@ -135,8 +133,9 @@ public static Map<String, String> defaultDevDependenciesForTypescript() {
135
133
136
134
public static Map <String , String > defaultDevDependenciesTypescriptWithEslint (String eslintVersion ) {
137
135
Map <String , String > dependencies = new LinkedHashMap <>();
138
- dependencies .put ("@typescript-eslint/eslint-plugin" , "5.45.0" );
139
- dependencies .put ("@typescript-eslint/parser" , "5.45.0" );
136
+ dependencies .put ("@typescript-eslint/eslint-plugin" , "^5.47.0" );
137
+ dependencies .put ("@typescript-eslint/parser" , "^5.47.0" );
138
+ dependencies .put ("typescript" , "^4.9.4" );
140
139
dependencies .put ("eslint" , Objects .requireNonNull (eslintVersion ));
141
140
return dependencies ;
142
141
}
0 commit comments