-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
65 lines (65 loc) · 2.1 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
module.exports = {
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'standard',
],
env: {
browser: true,
},
// required to lint *.vue files
plugins: [
'vue',
],
// add your custom rules here
rules: {
'class-methods-use-this': 0,
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'never',
exports: 'never',
functions: 'ignore',
}],
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'indent': ['error', 4],
'no-continue': 0,
'no-control-regex': 0,
'no-multi-assign': 0,
'no-param-reassign': ['error', { props: false }],
'no-plusplus': 0,
'no-prototype-builtins': 0,
'prefer-promise-reject-errors': 0,
'quote-props': ['error', 'consistent-as-needed'],
'object-shorthand': 0,
'operator-linebreak': 0,
'prefer-const': 0,
'prefer-destructuring': 0,
'prefer-object-spread': 0,
'prefer-template': 0,
'semi': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'vue/html-closing-bracket-spacing': 0,
'vue/html-indent': ['error', 4],
'vue/max-attributes-per-line': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/multiline-html-element-content-newline': 0,
'vue/no-v-html': 0,
'vue/require-prop-types': 0,
'vuejs-accessibility/anchor-has-content': 0,
'vuejs-accessibility/click-events-have-key-events': 0,
'vuejs-accessibility/form-control-has-label': 0,
'vuejs-accessibility/iframe-has-title': 0,
'vuejs-accessibility/interactive-supports-focus': 0,
'vuejs-accessibility/label-has-for': 0,
'vuejs-accessibility/mouse-events-have-key-events': 0,
},
};