No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Linting issues ... jsbeautify (sublime-text 3) throws errors for quasar lint

    Help
    lint
    2
    4
    1983
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CharlesO last edited by

      I get the following error once I save any file in sublime-text 3 using js-beautify

      C:\learn\quasar\rsg\src\components\Index.vue
        35:7   error  Missing space before function parentheses     space-before-function-paren
        36:7   error  Expected indentation of 4 spaces but found 6  indent
        42:5   error  Expected indentation of 2 spaces but found 4  indent
        43:5   error  Expected indentation of 2 spaces but found 4  indent
        44:15  error  Missing space before function parentheses     space-before-function-paren
        55:5   error  Expected indentation of 2 spaces but found 4  indent
        56:11  error  Missing space before function parentheses     space-before-function-paren
        74:5   error  Expected indentation of 2 spaces but found 4  indent
        74:12  error  Missing space before function parentheses     space-before-function-paren
        80:5   error  Expected indentation of 2 spaces but found 4  indent
        80:18  error  Missing space before function parentheses     space-before-function-paren
      

      Any help please.

      1 Reply Last reply Reply Quote 0
      • A
        afd last edited by

        http://quasar-framework.org/guide/app-linter-configuration.html

        1 Reply Last reply Reply Quote 0
        • C
          CharlesO last edited by

          @afd besides the “indent_size”: 4

          I’m still struggling to get the defaults from
          https://github.com/enginespot/js-beautify-sublime#settings
          to conform with
          http://quasar-framework.org/guide/app-linter-configuration.html

          1 Reply Last reply Reply Quote 0
          • C
            CharlesO last edited by

            solutions was simply to exclude .vue files from .jsbeautifyrc, then edit the eslint highlighted errors manually

            1 Reply Last reply Reply Quote 0
            • First post
              Last post