Comments (5)
Does this happen with pug-lint itself?
from pug-lint-vue.
@pehbehbeh
No, pug-lint-vue
about SFC .vue
file.
I updated the above code to make it easier to understand as examples.
from pug-lint-vue.
Hi, I'm currently having the same problem with attributes starting with :. Since, it's a valid syntax from Vue's perspective, I think pug-lint-vue has to consider it valid as well :). Thanks!
from pug-lint-vue.
This is not an issue of pug-lint-vue
, but rather an issue of the pug-lint
. We cannot fix this because we are simply using pug-lint
under the hood. The issue with the Code above is the indentation.
The following .pug-lintrc.js
will work (notice the spaces in multiLineSeparator
):
module.exports = {
validateAttributeSeparator: {
separator: ',',
multiLineSeparator: '\n '
}
}
But you will get problems with multi-level-indentation.
There is also an ongoing issue here: pugjs/pug-lint#157
from pug-lint-vue.
Also note that :
and @
are not the issue here. The following will get you exactly the same errors:
b-textarea(
rows='20'
v-bind:value='body'
v-bind:loading='isProcessing'
v-on:input='inputBody'
required
)
from pug-lint-vue.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pug-lint-vue.