generated from posva/vite-tailwind-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patheslint.config.js
32 lines (31 loc) · 850 Bytes
/
eslint.config.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
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import vueI18n from '@intlify/eslint-plugin-vue-i18n'
export default [
js.configs.recommended,
...pluginVue.configs['flat/recommended'],
...vueI18n.configs['flat/recommended'],
{
ignores: ['dist/**', '*.config.js', 'tests/**'],
},
{
rules: {
'no-unused-vars': 'warn',
'vue/no-mutating-props': ['error', { 'shallowOnly': true }],
'vue/no-reserved-component-names': 'off',
'vue/multi-word-component-names': 'off',
'vue/max-attributes-per-line': 'off',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
},
settings: {
'vue-i18n': {
localeDir: './i18n/locales/*.json'
}
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
}
},
]