-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.eslintrc.cjs.backup
More file actions
78 lines (77 loc) · 2.11 KB
/
.eslintrc.cjs.backup
File metadata and controls
78 lines (77 loc) · 2.11 KB
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
74
75
76
77
78
// This file is used to configure ESLint for the project
// Updated to latest standards as of 2025
module.exports = {
root: true,
env: {
browser: true,
es2025: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue-scoped-css/recommended',
'plugin:vuejs-accessibility/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
extraFileExtensions: ['.vue'],
},
plugins: ['vue', '@typescript-eslint', 'import', 'vue-scoped-css', 'vuejs-accessibility'],
settings: {
'import/resolver': {
typescript: {},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
},
},
'import/extensions': ['.js', '.jsx', '.ts', '.tsx', '.vue'],
},
rules: {
'vue/multi-word-component-names': 'warn',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'error',
'vue/require-default-prop': 'error',
'vue/no-unused-vars': 'error',
'vue/no-reserved-component-names': 'error',
'vue/no-use-v-if-with-v-for': 'error',
'vue/valid-v-slot': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', ['parent', 'sibling']],
pathGroups: [
{
pattern: 'vue',
group: 'external',
position: 'before',
},
{
pattern: '@/**',
group: 'internal',
position: 'after',
},
],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
};