-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
52 lines (50 loc) · 1.6 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
// npm install --save-dev babel-eslint eslint eslint-plugin-vue eslint-config-alloy vue-eslint-parser @babel/eslint-parser @babel/plugin-proposal-optional-chaining
// eslint --ext .js,.vue resources/js/ --fix
module.exports = {
extends: [
'plugin:vue/vue3-strongly-recommended',
'alloy',
'alloy/vue',
],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
eqeqeq: 0,
indent: ['error', 4],
'no-return-assign': 0,
'no-undef': 0,
'vue/component-tags-order': 0,
'vue/eqeqeq': 0,
'vue/html-indent': ['error', 4, {
'attribute': 1,
'baseIndent': 1,
'closeBracket': 0,
'alignAttributesVertically': false,
'ignores': [],
}],
'vue/max-attributes-per-line': ['error', {
'singleline': {
'max': 1,
},
'multiline': {
'max': 1,
},
}],
'vue/multi-word-component-names': 0,
'vue/no-arrow-functions-in-watch': 0,
'vue/no-deprecated-events-api': 0,
'vue/no-deprecated-v-on-native-modifier': 0,
'vue/no-duplicate-attributes': ['error', {
'allowCoexistClass': true,
'allowCoexistStyle': true,
}],
'vue/no-multiple-template-root': 0,
'vue/no-reserved-component-names': 0,
'vue/no-v-for-template-key': 0,
'vue/no-v-for-template-key-on-child': 0,
'vue/no-v-model-argument': 0,
'vue/require-explicit-emits': 0,
'vue/require-prop-types': 0,
},
};