Skip to content

基于 airbnb-base,定制了 vue && prettier;后续会考虑加上 flowtype 静态类型检测

Notifications You must be signed in to change notification settings

SFTC/eslint-config-sf-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SF Vue - ESLint With VUE && Prettier

npm downloads

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

doc.md

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

About

基于 airbnb-base,定制了 vue && prettier;后续会考虑加上 flowtype 静态类型检测

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published