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.
- [Vuejs]-Passing props from page layout through parent slot into child component
- [Vuejs]-Vue update object based on checkbox checked list of objects?
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.
- [Vuejs]-How to unittest a vuejs component update with methods using promise
- [Vuejs]-Two arrays are synchronous change,Maybe a bug from VUE
Source:stackexchange.com