-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.cjs
executable file
·102 lines (102 loc) · 2.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/airbnb',
],
plugins: [
'@typescript-eslint/eslint-plugin',
],
globals: {
ymaps: 'readonly',
ymaps3: 'readonly',
},
rules: {
'no-console': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'no-param-reassign': 0,
'consistent-return': 0,
'no-plusplus': 0,
'prefer-destructuring': 0,
'max-len': 'off',
'vue/max-len': 'off',
'vue/max-attributes-per-line': ['error', {
singleline: { max: 4 },
multiline: { max: 1 },
}],
'vue/no-v-html': 0,
'vue/require-default-prop': 0,
// Тут нам поможет rollup
'import/no-extraneous-dependencies': 'off',
'no-promise-executor-return': 'off',
'object-shorthand': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'none',
caughtErrorsIgnorePattern: '^ignore',
vars: 'local',
},
],
'comma-dangle': [
'error',
'always-multiline',
],
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-dupe-class-members': 'off',
'@typescript-eslint/no-dupe-class-members': ['error'],
'no-useless-constructor': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': [
'error', {
'functions': false,
},
],
'@typescript-eslint/no-useless-constructor': [
'error',
],
'space-before-function-paren': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'no-undef': 'off',
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'no-restricted-globals': 'off',
'no-alert': 'off',
'no-continue': 'off',
'func-call-spacing': 'off',
'@typescript-eslint/func-call-spacing': 'error',
'no-spaced-func': 'off',
'import/order': 'off',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'prefer-const': ['error', { destructuring: 'all' }],
'vue/v-on-event-hyphenation': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
quotes: [
'error',
'single',
{
allowTemplateLiterals: true,
avoidEscape: true,
},
],
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
ignorePatterns: [
'dist',
'nuxt2-plugin.js',
],
};