Eslint config hostelworld vue

Hostelworld ESLint Shareable Config for Vue.js

Version: 1.1.1 Updated: 12/14/2017

By: Hostelworld License: MIT

Downloads Last 30 Days: 31

eslint-config-hostelworld-vue

Build Status npm npm

ESLint Shareable Config for Vue.js extending:

Installation

  1. First install the following npm packages:

     # core package
     npm install --save-dev eslint-config-hostelworld-vue
     # plus the peer dependencies
     npm install --save-dev babel-eslint eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard eslint-config-hostelworld eslint-plugin-vue@next
  2. Then add eslint-config-hostelworld-vue to your .eslintrc.* extends section:

     {
         "extends": [
             "hostelworld-vue"
         ],
         "rules": {
             // Additional, per-project rules or overrides...
         }
     }

Additional rules

  • 3 attributes maximum in a single line. rule
  • 4 spaces for HTML indentation within the templates. rule

License

This library is open-sourced software licensed under the MIT license.

Authors

Hostelworld Team

Categories: Vue js