-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
81 lines (81 loc) · 2.1 KB
/
.eslintrc.cjs
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:vue/vue3-strongly-recommended",
"prettier"
],
"rules": {
"vue/require-default-prop": "off",
"vue/multi-word-component-names": "off",
},
"globals": {
// General
"nextTick": true,
"defineComponent": true,
"defineAsyncComponent": true,
"defineCustomElement": true,
// Vue Reactivity: Core
"ref": true,
"computed": true,
"reactive": true,
"readonly": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"watch": true,
// Vue Reactivity: Utilities
"isRef": true,
"unref": false,
"toRef": true,
"toRefs": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
// Vue Reactivity: Advanced
"shallowRef": true,
"triggerRef": true,
"customRef": true,
"shallowReactive": true,
"shallowReadonly": true,
"toRaw": true,
"markRaw": true,
"effectScope": true,
"getCurrentScope": true,
"onScopeDispose": true,
// Vue Lifecycle Hooks
"onMounted": true,
"onUpdated": true,
"onUnmounted": true,
"onBeforeMount": true,
"onBeforeUpdate": true,
"onBeforeUnmount": true,
"onErrorCaptured": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onActivated": true,
"onDeactivated": true,
"onServerPrefetch": true,
// Vue Dependency Injection
"provide": true,
"inject": true,
// Vue <script setup>
"defineProps": true,
"defineEmits": true,
"useAttrs": true,
"useSlots": true,
"defineExpose": true,
// Inertia
"router": true,
"useForm": true,
"usePage": true,
"require-v-for-key": false
},
"ignorePatterns": [
"node_modules/**/*",
"vendor/**/*"
]
}