-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (48 loc) · 1.29 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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:vue/recommended', // for Vue 2.x
'standard'
],
globals: {
A: true, // Aladin script
$: true,
d3: true,
google: true,
OverlappingMarkerSpiderfier: true,
_chatlio: true
},
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'vue',
'no-autofix'
],
rules: {
'camelcase': 'off',
'eqeqeq': 'off',
'brace-style': 'off',
'quote-props': ['error', 'consistent'],
'vue/require-prop-type-constructor': 'off',
'vue/prop-name-casing': 'off',
'vue/require-default-prop': 'off',
'vue/require-prop-types': 'off',
'vue/order-in-components': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-for-template-key': 'off',
'vue/no-v-for-template-key-on-child': 'off',
/* Don't automatically fix these when running `eslint --fix`, but keep the warning/error */
// This autofix induced breaking changes when props are named with a mix of camelCase and snake_case,
// such as in SiteCalendar by changing the prop for TheCalendar (fc_timeZone)
// from 'fc_timeZone' to 'fc-time-zone'
'vue/attribute-hyphenation': 'off',
'no-autofix/vue/attribute-hyphenation': 'error'
}
}