Skip to content
Snippets Groups Projects

Feature linting tool

Merged Michael Kessler requested to merge feature_lintingTool into feature_sgc5
8 files
+ 429
228
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 8
2
@@ -215,9 +215,11 @@ module.exports = class Css extends Task {
async _qa(_input) {
return new Promise(resolve => {
let file = fs.readFileSync(_input, 'utf8');
const {fix} = this._config;
postcss([
stylelint({
configBasedir: `${process.cwd()}/sgc-core/`
configBasedir: `${process.cwd()}/sgc-core/`,
fix: fix
}),
reporter({
formatter: _input => {
@@ -241,7 +243,11 @@ module.exports = class Css extends Task {
]).process(file, {
from: _input,
syntax: scss
}).then(() => {
}).then((result) => {
if (fix) {
fs.writeFileSync(_input, result.css);
}
resolve();
});
});
Loading