-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheslint.config.mjs
51 lines (50 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
import js from '@eslint/js';
import vueI18n from '@intlify/eslint-plugin-vue-i18n';
import vuePrettier from '@vue/eslint-config-prettier';
import prettier from 'eslint-plugin-prettier/recommended';
import vue from 'eslint-plugin-vue';
import ts from 'typescript-eslint';
import importX from 'eslint-plugin-import-x';
import tsParser from '@typescript-eslint/parser';
export default [
prettier,
js.configs.recommended,
...ts.configs.recommended,
...vue.configs['flat/recommended'],
...vueI18n.configs['flat/recommended'],
vuePrettier,
importX.flatConfigs.recommended,
importX.flatConfigs.typescript,
{
files: ['**/*.{vue,ts,js,mjs}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
extraFileExtensions: ['.vue'],
parser: tsParser
}
},
settings: {
'vue-i18n': {
localeDir: 'src/i18n/locales/*.json'
}
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/require-default-prop': 'off',
'vue/no-v-html': 'off',
'import-x/no-unresolved': 'off',
'no-console': 'error',
'prettier/prettier': [
'error',
{
jsonRecursiveSort: true,
printWidth: 120,
singleQuote: true,
trailingComma: 'none'
}
]
}
}
];