eslint-config-airbnb-vue

2.0.1 • Public • Published

Airbnb Vue - ESLint With VUE && Prettier

travis npm downloads

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

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

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-airbnb-vue

Weekly Downloads

121

Version

2.0.1

License

ISC

Unpacked Size

47.3 kB

Total Files

9

Last publish

Collaborators

  • jsdchenye