Coder Social home page Coder Social logo

Comments (5)

pehbehbeh avatar pehbehbeh commented on June 14, 2024

Does this happen with pug-lint itself?

from pug-lint-vue.

iwata avatar iwata commented on June 14, 2024

@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.

SebinSong avatar SebinSong commented on June 14, 2024

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.

pehbehbeh avatar pehbehbeh commented on June 14, 2024

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.

pehbehbeh avatar pehbehbeh commented on June 14, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.