This repository has been archived by the owner on Mar 24, 2020. It is now read-only.
forked from jackson-jackson/vanbtc.ca
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.js
61 lines (61 loc) · 1.48 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
plugins: [
'html',
],
globals: {
'cordova': true,
'hce': true,
'nfc': true
},
settings: {
// if you have .vue active for eslint-html-plugin settings
// linting will not progress through all subdirectories
// it conflicts with eslint-plugin-vue (latest v3.5.0)
// it will stop at the main entry point.
"html/html-extensions": [".html", /* ".vue" */], // consider .html files as XML
"html/report-bad-indent": "error",
},
extends: [
'eslint:recommended',
'plugin:vue/recommended' // or 'plugin:vue/base'
],
parserOptions: {
parser: "babel-eslint",
sourceType: 'module'
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'no-unused-vars': ['warn'],
'no-console': 0,
'no-debugger': 0,
'generator-star-spacing': 0,
'vue/order-in-components': [2, {
order: [
['name', 'delimiters', 'functional', 'model'],
['components', 'directives', 'filters'],
['parent', 'mixins', 'extends', 'provide', 'inject'],
'el',
'template',
'props',
'propsData',
'data',
'computed',
'watch',
'lifecycle_hooks',
'methods',
'render',
'renderError'
]
}] // END order
},
};