-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (35 loc) · 975 Bytes
/
.eslintrc.cjs
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
plugins: ['vue', '@typescript-eslint', 'sonarjs'],
extends: [
'plugin:vue/vue3-recommended',
'@vue/eslint-config-prettier',
'eslint:recommended',
'plugin:@typescript-eslint/stylistic',
'plugin:sonarjs/recommended-legacy',
'@vue/eslint-config-typescript',
'plugin:jsdoc/recommended-typescript-error'
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
extraFileExtensions: ['.vue']
},
rules: {
'vue/html-self-closing': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'sort-imports': [
'error',
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
allowSeparatedGroups: false
}
]
}
}