File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
plugin-maven/src/test/java/com/diffplug/spotless/maven/javascript Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -107,5 +107,29 @@ void eslintJsStyleguideUsingInlineConfig(String styleGuide) throws Exception {
107
107
mavenRunner ().withArguments ("spotless:apply" ).runNoError ();
108
108
assertFile (TEST_FILE_PATH ).sameAsResource (styleGuidePath + "/javascript-es6.clean" );
109
109
}
110
+
111
+ @ Test
112
+ void provideCustomDependenciesForStyleguideStandard () throws Exception {
113
+ final String styleGuidePath = "npm/eslint/javascript/styleguide/standard" ;
114
+
115
+ writePomWithJavascriptSteps (
116
+ TEST_FILE_PATH ,
117
+ "<eslint>" ,
118
+ " <configFile>.eslintrc.js</configFile>" ,
119
+ " <devDependencies>" ,
120
+ " <eslint>8.28.0</eslint>" ,
121
+ " <eslint-config-standard>17.0.0</eslint-config-standard>" ,
122
+ " <eslint-plugin-import>2.26.0</eslint-plugin-import>" ,
123
+ " <eslint-plugin-n>15.6.0</eslint-plugin-n>" ,
124
+ " <eslint-plugin-promise>6.1.1</eslint-plugin-promise>" ,
125
+ " </devDependencies>" ,
126
+ "</eslint>" );
127
+ setFile (".eslintrc.js" ).toResource (styleGuidePath + "/.eslintrc.js" );
128
+
129
+ setFile (TEST_FILE_PATH ).toResource (styleGuidePath + "/javascript-es6.dirty" );
130
+
131
+ mavenRunner ().withArguments ("spotless:apply" ).runNoError ();
132
+ assertFile (TEST_FILE_PATH ).sameAsResource (styleGuidePath + "/javascript-es6.clean" );
133
+ }
110
134
}
111
135
}
You can’t perform that action at this time.
0 commit comments