Skip to content

Commit e5d2c78

Browse files
committed
fix config of StyleLintPlugin
1 parent 476a8e2 commit e5d2c78

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

template/build/webpack.base.conf.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ module.exports = {
3939
// Stylelint for all imports
4040
// https://github.com/vieron/stylelint-webpack-plugin
4141
new StyleLintPlugin({
42-
configFile: resolve('.stylelintrc.js'),
43-
context: 'inherits from webpack',
44-
files: '../src/**/*.(vue|html?|css|sss|less|scss)',
45-
failOnError: false,
46-
syntax: require('postcss-html'),
42+
files: ['src/**/*.{vue,htm,html,css,sss,less,scss}'],
4743
})
4844
],
4945
{{/stylelint}}

template/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
{{/if_eq}}
5757
{{/eslint}}
5858
{{#stylelint}}
59-
"postcss-html": "^0.9.0",
60-
"stylelint": "^8.3.1",
59+
"stylelint": "^8.4.0",
6160
"stylelint-webpack-plugin": "^0.9.0",
6261
{{#if_eq stylelintConfig "standard"}}
6362
"stylelint-config-standard": "^18.0.0",

0 commit comments

Comments
 (0)