-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
44 lines (43 loc) · 1.12 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
// eslint.config.js
import stylistic from '@stylistic/eslint-plugin'
import pluginVue from 'eslint-plugin-vue'
import typescriptEslint from 'typescript-eslint'
export default [
...pluginVue.configs['flat/recommended'],
stylistic.configs.customize({
flat: true, // required for flat config
// the following options are the default values
indent: 2,
quotes: 'single',
semi: false,
// ...
}),
{
languageOptions: {
parserOptions: {
parser: typescriptEslint.parser,
},
},
rules: {
'no-console': 'off',
'vue/multi-word-component-names': 'off',
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 10
},
multiline: {
max: 1
}
}],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/space-before-function-paren': ['error', {
anonymous: 'always',
named: 'always',
asyncArrow: 'always'
}],
'@stylistic/comma-dangle': 'off',
'@stylistic/max-statements-per-line': ['error', { max: 3 }],
},
},
// ...your other config items
]