-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
61 lines (55 loc) · 1.64 KB
/
.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
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
const importOrderRuleConfig = {
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
pathGroups: [
{
pattern: '~/**',
group: 'external',
position: 'after',
},
{
pattern: '@/**',
group: 'internal',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
};
module.exports = {
root: true,
plugins: ['testing-library'],
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:import/recommended',
'plugin:testing-library/vue',
],
rules: {
'vue/no-unused-properties': [
'error',
{
groups: ['props', 'computed', 'methods', 'data'],
deepData: true,
ignorePublicMembers: false,
},
],
'vue/component-name-in-template-casing': ['warn', 'PascalCase'],
'vue/html-self-closing': ['error', { html: { void: 'any' } }],
'vue/padding-line-between-blocks': 'warn',
'vue/require-name-property': 'error',
'vue/static-class-names-order': 'warn',
'vue/v-on-event-hyphenation': 'warn',
'vue/v-on-function-call': ['error', 'never', { ignoreIncludesComment: true }],
'import/order': ['warn', importOrderRuleConfig],
'import/newline-after-import': 'warn',
'import/no-unresolved': 'off', // Turn off for now because the plugin is confused about paths
},
parserOptions: {
ecmaVersion: 'latest',
},
};