-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
40 lines (38 loc) · 918 Bytes
/
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
import parser from 'vue-eslint-parser';
import pluginVue from 'eslint-plugin-vue';
import vueTsEslintConfig from '@vue/eslint-config-typescript';
import stylistic from '@stylistic/eslint-plugin'
import tsPlugin from '@typescript-eslint/eslint-plugin';
export default [
...pluginVue.configs['flat/essential'],
...pluginVue.configs['flat/strongly-recommended'],
...vueTsEslintConfig({
extends: [
'recommended',
'stylistic',
]
}),
{
files: ['**/*.ts', '**/*.vue'],
},
{
ignores: ['dist/**'],
},
{
languageOptions: {
parser,
ecmaVersion: 'latest',
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
plugins: {
'@typescript-eslint': tsPlugin,
'@stylistic': stylistic,
},
rules: {
'@stylistic/max-len': ['warn', { code: 120 }],
'vue/attribute-hyphenation': ['warn', 'never'],
},
},
];