You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Wagtail-Kit's stylelint to version 14.X and stylelint-config-torchbox to version 2.0.3, Vue files started to spit out a CssSyntaxError. Running npm run lint:css (stylelint --report-needless-disables './wagtailkit_repo_name/static_src/sass' './wagtailkit_repo_name/static_src/javascript/vue_components'), we get:
wagtailkit_repo_name/static_src/javascript/vue_components/Hello.vue
3:28 ✖ Unknown word CssSyntaxError
1 problem (1 error, 0 warnings)
After upgrading Wagtail-Kit's
stylelint
to version 14.X andstylelint-config-torchbox
to version 2.0.3, Vue files started to spit out aCssSyntaxError
. Runningnpm run lint:css
(stylelint --report-needless-disables './wagtailkit_repo_name/static_src/sass' './wagtailkit_repo_name/static_src/javascript/vue_components'
), we get:The problematic line contains the following:
It seems like other people have run into this before (stylelint/stylelint#5634 and stylelint/stylelint#3633) and their issues seemed to be related to
stylelint
's Vue configuration.In fact, if we add a custom syntax rule for Vue files at
.stylelintrc
:and install/add
postcss-html
to our dev-dependencies, the error goes away.Although the error started appearing after the v14 update, it is still present at
stylelint
v15 and the lateststylelint-config-torchbox
versions.The text was updated successfully, but these errors were encountered: