eslint-config-airbnb-vue
v2.0.1
Published
A set of eslint specification plugins customized based on airbnb standards
Downloads
719
Readme
Airbnb Vue - ESLint With VUE && Prettier
Install
npm install eslint-config-airbnb-vue
Usage
The config is based on eslint-config-airbnb-base
and eslint-plugin-vue
and eslint-config-prettier
.
Then, add this to your .eslintrc file:
{
"extends": ["airbnb-vue"]
}
Tip: to check your .vue/.html/.js,you need to edit your editor's perference. Eg. in my vs:
"eslint.autoFixOnSave": true, // 启用保存时自动修复,默认只支持.js文件
"eslint.validate": [
"javascript", // 用eslint的规则检测js文件
{
"language": "vue", // 检测vue文件
"autoFix": true // 为vue文件开启保存自动修复的功能
},
{
"language": "html",
"autoFix": true
},
],
Docs
Learn more
For the full listing of rules, editor plugins, FAQs, and more, visit the main Airbnb JavaScript Style repo. Airbnb Vue Style repo. Airbnb Prettier repo.
License
MIT