-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.cjs
61 lines (60 loc) · 1.85 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');
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'plugin:vue-pug/vue3-recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
env: {
'vue/setup-compiler-macros': true,
},
rules: {
'vue/require-default-prop': 'off',
"vue/multi-word-component-names": 'off',
'no-console': 'off',
'no-debugger': 'off',
'comma-dangle': ['error', 'always-multiline'],
curly: ['error', 'all'],
indent: ['error', 2, { ignoreComments: true }],
'prefer-arrow-callback': 'error',
'lines-between-class-members': 'off',
'array-bracket-spacing': ['error', 'never'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/camelcase': 'off',
'id-match': ['error', '^[A-Za-z0-9-_$]+$', { properties: true }], // To prevent cyrillic letters etc.
'vue/html-closing-bracket-spacing': 'error',
'vue/no-multiple-template-root': 'off',
'no-void': 'off',
'import/named': 0,
'import/export': 0,
'import/no-default-export': 0,
'import/prefer-default-export': 0,
'@typescript-eslint/no-shadow': ['error'],
'lines-around-comment': [
'error',
{
beforeBlockComment: false,
allowBlockStart: false,
},
],
// 'max-len': ['error', {
// code: 150,
// ignoreTemplateLiterals: true,
// ignoreStrings: true,
// ignoreComments: true,
// ignorePattern: 'd="([\\s\\S]*?)"',
// }],
},
};