-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint pug template #640
Comments
issue is related to vue-eslint-parser: vuejs/vue-eslint-parser#29 |
We don't support pug templates. This should be raised once vue-eslint-parser has support for it or once it ignores parsing templates of unknown languages. I highly recommend using HTML instead of any HTML preprocessor to get the best possible support and migration path in the future (codemods most likely won't support PUG either). |
@michalsnik thanks :) it is fixed in prettier |
Author of https://github.com/prettier/plugin-pug here. Please |
https://www.npmjs.com/package/eslint-plugin-vue-pug-sfc/v/1.0.0-alpha.2 👀 This is a first alpha and "supports" Please give it a try and please also start to create issues in the repo for every rule you want to get support for! Please also feel free to jump into the code and help me 😃 Please note, if you consider this plugin as helpful, that I'm open to receive money via GitHub sponsoring. I would really appreciate it. I will not spam here anymore, so please lets move all discussions to the project's repo. |
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
yarn add pug pug-plain-loader -D
App.vue
use pug, got incorrect lint.What actually happened? Please include the actual, raw output from ESLint.
yarn lint --fix
thenwork around
<!-- prettier-ignore --> <template lang="pug"> #app img(alt='Vue logo', src='./assets/logo.png') hello-world(msg='Welcome to Your Vue.js App') </template> <script> import HelloWorld from './components/HelloWorld.vue' export default { name: 'app', components: { HelloWorld } } </script>
The text was updated successfully, but these errors were encountered: