generated from kostikovk/nuxt3-naiveUI-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
39 lines (31 loc) · 788 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
},
extends: ['plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential', 'plugin:prettier/recommended'],
plugins: ['prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': [2],
'vue/no-multiple-template-root': 0,
'vue/component-name-in-template-casing': [2, 'PascalCase', { registeredComponentsOnly: false }]
},
overrides: [
{
files: ['layouts/*.vue', 'pages/**/*.vue'],
rules: {
'vue/multi-word-component-names': 0,
'vue/no-multiple-template-root': 0
}
}
],
globals: {
defineStore: true,
storeToRefs: true
}
}