Skip to content

Commit

Permalink
changed babel preset env loose mode to false, updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
arturparkhisenko committed Mar 6, 2019
1 parent f9cad52 commit 741b035
Show file tree
Hide file tree
Showing 5 changed files with 1,752 additions and 1,416 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
"modules": false,
"loose": true
"loose": false
}
]
],
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
"airbnb/base",
"prettier"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
Expand Down
33 changes: 17 additions & 16 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,21 @@ const lintScripts = () =>
// .pipe($.if(!browserSync.active, $.eslint.failOnError()));

const lintStyles = () =>
gulp.src(['src/styles/**/*.css', '!src/styles/**/*.min.css'])
.pipe($.plumber())
.pipe(
$.stylelint({
// failAfterError: true,
reporters: [
{
formatter: 'verbose',
console: true
}
],
debug: true
})
);
gulp
.src(['src/styles/**/*.css', '!src/styles/**/*.min.css'])
.pipe($.plumber())
.pipe(
$.stylelint({
// failAfterError: true,
reporters: [
{
formatter: 'verbose',
console: true
}
],
debug: true
})
);

const scripts = done => {
webpack(webpackConfig, (err, stats) => {
Expand Down Expand Up @@ -99,7 +100,7 @@ const styles = () =>
url: 'inline'
}),
postcssPresetEnv({
stage: 0, // default is 3
stage: 0 // default is 3
}),
cssnano({
safe: true
Expand Down Expand Up @@ -171,7 +172,7 @@ const html = () =>
.pipe($.plumber())
.pipe(
$.htmlmin({
collapseWhitespace: true,
collapseWhitespace: true
// minifyCSS: true,
// minifyJS: true,
// removeComments: false
Expand Down
Loading

0 comments on commit 741b035

Please sign in to comment.