...
|
...
|
@@ -32,13 +32,13 @@ if (changeFiles.js) { |
|
|
|
|
|
if (changeFiles.css) {
|
|
|
changeFiles.css = changeFiles.css.replace(/\n/g, ' ');
|
|
|
lintResult.css = shelljs.exec(`${lintPath.css}${ext} --syntax scss --config .stylelintrc "${changeFiles.css}"`);
|
|
|
lintResult.css = shelljs.exec(`${lintPath.css}${ext} --syntax scss --config .stylelintrc ${changeFiles.css}`);
|
|
|
}
|
|
|
|
|
|
if (changeFiles.vue) {
|
|
|
changeFiles.vue = changeFiles.vue.replace(/\n/g, ' ');
|
|
|
lintResult.vueScript = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache ${changeFiles.vue}`);
|
|
|
lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc "${changeFiles.vue}"`); // eslint-disable-line
|
|
|
lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc ${changeFiles.vue}`); // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
const errorCode = lintResult.js.code || lintResult.css.code || lintResult.vueScript.code || lintResult.vueStyle.code;
|
...
|
...
|
|