eslint-config-sf-vue
v1.0.2
Published
A eslint of vue for sf
Downloads
7
Readme
SF Vue - ESLint With VUE && Prettier
Install
npm install eslint-config-sf-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": ["sf-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