Skip to content

Commit 393a4c4

Browse files
committed
eslint: bumping version numbers
1 parent 0206246 commit 393a4c4

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

lib/src/main/java/com/diffplug/spotless/npm/EslintFormatterStep.java

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,64 +45,62 @@ public class EslintFormatterStep {
4545

4646
public static final String NAME = "eslint-format";
4747

48-
public static final String DEFAULT_ESLINT_VERSION = "8.28.0";
48+
public static final String DEFAULT_ESLINT_VERSION = "^8.30.0";
4949

5050
public enum PopularStyleGuide {
5151
TS_STANDARD_WITH_TYPESCRIPT("standard-with-typescript") {
5252
@Override
5353
public Map<String, String> devDependencies() {
5454
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");
6059
return dependencies;
6160
}
6261
},
6362
TS_XO_TYPESCRIPT("xo-typescript") {
6463
@Override
6564
public Map<String, String> devDependencies() {
6665
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");
7068
return dependencies;
7169
}
7270
},
7371
JS_AIRBNB("airbnb") {
7472
@Override
7573
public Map<String, String> devDependencies() {
7674
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");
7977
return dependencies;
8078
}
8179
},
8280
JS_GOOGLE("google") {
8381
@Override
8482
public Map<String, String> devDependencies() {
8583
Map<String, String> dependencies = new LinkedHashMap<>();
86-
dependencies.put("eslint-config-google", "0.14.0");
84+
dependencies.put("eslint-config-google", "^0.14.0");
8785
return dependencies;
8886
}
8987
},
9088
JS_STANDARD("standard") {
9189
@Override
9290
public Map<String, String> devDependencies() {
9391
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");
9896
return dependencies;
9997
}
10098
},
10199
JS_XO("xo") {
102100
@Override
103101
public Map<String, String> devDependencies() {
104102
Map<String, String> dependencies = new LinkedHashMap<>();
105-
dependencies.put("eslint-config-xo", "0.43.1");
103+
dependencies.put("eslint-config-xo", "^0.43.1");
106104
return dependencies;
107105
}
108106
};
@@ -135,8 +133,9 @@ public static Map<String, String> defaultDevDependenciesForTypescript() {
135133

136134
public static Map<String, String> defaultDevDependenciesTypescriptWithEslint(String eslintVersion) {
137135
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");
140139
dependencies.put("eslint", Objects.requireNonNull(eslintVersion));
141140
return dependencies;
142141
}

0 commit comments

Comments
 (0)