Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 5f9796c

Browse files
committed
fix(eslint): new rules
1 parent 22c6e26 commit 5f9796c

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
imports: 'never',
2121
exports: 'never',
2222
functions: 'never'
23-
}]
23+
}],
24+
'prefer-destructuring': [0]
2425
},
2526
};

lib/css.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ module.exports = (gulp, config, tasks) => {
3838
sourceComments: config.css.sourceComments,
3939
includePaths: config.css.includePaths
4040
}).on('error', sass.logError))
41-
.pipe(postcss(
42-
[
43-
autoprefixer({
44-
browsers: config.css.autoPrefixerBrowsers
45-
})
46-
]
47-
))
41+
.pipe(postcss([
42+
autoprefixer({
43+
browsers: config.css.autoPrefixerBrowsers
44+
})
45+
]))
4846
.pipe(gulpif(config.css.sourceMap.enabled, sourcemaps.write((config.css.sourceMap.sourceMapEmbed) ? null : './')))
4947
.pipe(gulpif(config.css.flattenDestOutput, flatten()))
5048
.pipe(gulp.dest(config.css.dest))

lib/webpack.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ Note: you can copy the template from templates/webpack.config.js.
6060
if (!webpackConfig.plugins) webpackConfig.plugins = [];
6161
if (typeof webpackConfig.devtool === 'undefined') webpackConfig.devtool = 'cheap-module-source-map';
6262

63-
webpackConfig.plugins.push(
64-
new webpack.LoaderOptionsPlugin({
65-
debug: true
66-
})
67-
);
63+
webpackConfig.plugins.push(new webpack.LoaderOptionsPlugin({
64+
debug: true
65+
}));
6866

6967
return webpack(webpackConfig).watch({
7068
// https://webpack.js.org/configuration/watch/#watchoptions

0 commit comments

Comments
 (0)