-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
40 lines (39 loc) · 1.14 KB
/
eslint.config.mjs
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
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
export default withNuxt(eslintPluginPrettierRecommended, {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'vue/multi-word-component-names': 'off',
'vue/block-lang': [
'error',
{
script: {
lang: 'ts',
},
},
],
'vue/block-order': [
'error',
{
order: ['script', 'template', 'style'],
},
],
'vue/component-api-style': ['error', ['script-setup']],
'vue/component-name-in-template-casing': 'error',
'vue/custom-event-name-casing': 'error',
'vue/define-emits-declaration': 'error',
'vue/define-macros-order': 'error',
'vue/define-props-declaration': 'error',
'vue/padding-line-between-blocks': 'error',
'vue/require-typed-ref': 'error',
'vue/v-for-delimiter-style': ['error', 'of'],
},
})