-
Notifications
You must be signed in to change notification settings - Fork 309
/
.eslintrc.js
103 lines (102 loc) · 2.56 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
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
103
const path = require('path');
module.exports = {
root: true,
env: {
// so we get BigInt etc
es2020: true,
commonjs: true,
node: true,
mocha: true,
},
globals: {
userconfig: true,
},
extends: [
'plugin:vue/recommended',
'@vue/eslint-config-airbnb',
],
plugins: [
'vue',
],
rules: {
'max-len': [
'error',
{
code: 300,
ignoreUrls: true,
ignoreTrailingComments: true,
},
],
'vue/max-len': [
'error',
{
code: 300,
ignoreUrls: true,
ignoreTrailingComments: true,
},
],
'no-console': 'off',
'vue/no-use-v-if-with-v-for': 'off',
'linebreak-style': [
'error',
'unix',
],
'prefer-destructuring': ['error', { object: true, array: false }],
'import/no-extraneous-dependencies': ['error', {
devDependencies: true, optionalDependencies: true, peerDependencies: false,
}],
camelcase: ['error', { properties: 'never', ignoreDestructuring: true, ignoreImports: true }],
'import/extensions': ['error', 'ignorePackages', { vue: 'always', js: 'never' }],
'import/order': 'off',
'vue/multi-word-component-names': 'off',
'vuejs-accessibility/label-has-for': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'vuejs-accessibility/heading-has-content': 'off',
'vuejs-accessibility/anchor-has-content': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false,
},
settings: {
'import/resolver': {
node: {
extensions: [
'.js',
'.jsx',
'.vue',
],
},
alias: {
map: [
['@', path.resolve(__dirname, './HomeUI/src')],
['@themeConfig', path.resolve(__dirname, './HomeUI/themeConfig.js')],
['@core', path.resolve(__dirname, './HomeUI/src/@core')],
['@validations', path.resolve(__dirname, './HomeUI/src/@core/utils/validations/validations.js')],
['@axios', path.resolve(__dirname, './HomeUI/src/libs/axios')],
['ZelBack', path.resolve(__dirname, './ZelBack')],
['Config', path.resolve(__dirname, './config')],
],
extensions: ['.js', '.jsx', '.vue'],
},
},
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
mocha: true,
},
},
{
files: ['*.html'],
rules: {
'vue/comment-directive': 'off',
},
},
],
};