ESLint Shareable Config for Vue.js extending:
-
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
-
Then add
eslint-config-hostelworld-vue
to your.eslintrc.*
extends section:{ "extends": [ "hostelworld-vue" ], "rules": { // Additional, per-project rules or overrides... } }
- 3 attributes maximum in a single line. rule
- 4 spaces for HTML indentation within the templates. rule
This library is open-sourced software licensed under the MIT license.