-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.cjs
83 lines (74 loc) · 1.49 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
/* eslint-env node */
/*
module.exports = {
"root": true,
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest"
}
}
*/
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
node: true
},
ignorePatterns: ['src/assets/js/**/*.js'],
extends: [
'plugin:vue/base',
'plugin:vue/vue3-essential',
'eslint:recommended',
'airbnb-base',
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'comma-dangle': 'off',
'no-tabs': 'off',
'no-console': 'off',
'max-len': 'off',
'import/no-unresolved': 'off',
eqeqeq: 'off',
'import/extensions': 'off',
camelcase: 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-multi-str': 'off',
'prefer-destructuring': 'off',
'vue/valid-v-for': 'off',
'no-plusplus': 'off',
'global-require': 'off',
'import/no-dynamic-require': 'off',
'vue/no-v-for-template-key': 'off',
'vue/multi-word-component-names': ['error', {
ignores: ['Activity', 'Control', 'Gallery', 'Landing', 'Settings', 'Sidebar']
}]
},
plugins: [
'vue'
],
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
},
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
};