[Vuejs]-Are there any linting rules for vuejs

0👍

The rules are the same, as a normal Javascript Project.

You can take a look into this .eslintrc.js file.

Its up to you how you load them, and also you need to install the correct plugins.

0👍

Vue now has an official style guide with "essentials" and "recommended" conventions. There are eslint configs based on the style guide that you can add to your project, and if you create a new project with the Vue CLI tool it will ask if you want to pre-configure it with eslint out of the box.

    // example from my .eslintrc.js file
    extends: [
        'plugin:vue/essential',
        '@vue/airbnb',
    ],

Then you could change vue/essential to vue/recommended for more comprehensive rules.

Leave a comment