-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
73 lines (73 loc) · 1.44 KB
/
.eslintrc.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = {
parser: 'vue-eslint-parser',
plugins: ['prettier'],
extends: [
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'plugin:unicorn/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
rules: {
'vue/multi-word-component-names': [0],
quotes: [1, 'single'],
indent: [0],
'unicorn/filename-case': [0],
'unicorn/prefer-module': [0],
'unicorn/explicit-length-check': [0],
'unicorn/prevent-abbreviations': [
0,
{
allowList: {
props: true,
},
},
],
'unicorn/no-null': [0],
'unicorn/numeric-separators-style': [0],
'unicorn/no-this-assignment': [0],
'unicorn/prefer-add-event-listener': [0],
'unicorn/no-array-reduce': [0],
'import/no-unresolved': [2],
'import/no-named-as-default': [0],
'import/order': [
2,
{
alphabetize: {
caseInsensitive: true,
order: 'asc',
},
'newlines-between': 'always',
groups: [
'builtin',
'external',
['internal', 'parent', 'sibling', 'index'],
],
pathGroups: [
{
pattern: '~/**',
group: 'internal',
patternOptions: {
nocomment: true,
},
position: 'after',
},
],
},
],
},
}