|
@@ -27,7 +27,7 @@ if (!shelljs.grep('npm run -s', path.resolve('./.git/hooks/pre-commit')).stdout. |
|
@@ -27,7 +27,7 @@ if (!shelljs.grep('npm run -s', path.resolve('./.git/hooks/pre-commit')).stdout. |
27
|
|
27
|
|
28
|
if (changeFiles.js) {
|
28
|
if (changeFiles.js) {
|
29
|
changeFiles.js = changeFiles.js.replace(/\n/g, ' ');
|
29
|
changeFiles.js = changeFiles.js.replace(/\n/g, ' ');
|
30
|
- lintResult.js = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache --fix ${changeFiles.js}`);
|
30
|
+ lintResult.js = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache ${changeFiles.js}`);
|
31
|
}
|
31
|
}
|
32
|
|
32
|
|
33
|
if (changeFiles.css) {
|
33
|
if (changeFiles.css) {
|
|
@@ -37,7 +37,7 @@ if (changeFiles.css) { |
|
@@ -37,7 +37,7 @@ if (changeFiles.css) { |
37
|
|
37
|
|
38
|
if (changeFiles.vue) {
|
38
|
if (changeFiles.vue) {
|
39
|
changeFiles.vue = changeFiles.vue.replace(/\n/g, ' ');
|
39
|
changeFiles.vue = changeFiles.vue.replace(/\n/g, ' ');
|
40
|
- lintResult.vueScript = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache --fix ${changeFiles.vue}`);
|
40
|
+ lintResult.vueScript = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache ${changeFiles.vue}`);
|
41
|
lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc ${changeFiles.vue}`); // eslint-disable-line
|
41
|
lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc ${changeFiles.vue}`); // eslint-disable-line
|
42
|
}
|
42
|
}
|
43
|
|
43
|
|