This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
95 lines (95 loc) · 2.05 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
'eslint:recommended',
],
globals: {
chrome: true,
location: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 12,
parser: '@babel/eslint-parser',
requireConfigFile: false,
sourceType: 'module',
},
plugins: [
'import',
'@babel',
],
settings: {
'import/resolver': {
'babel-module': {},
},
},
rules: {
'brace-style': ['error', 'stroustrup'],
'default-case': [
'error', {
commentPattern: '^skip\\sdefault',
},
],
'func-names': ['error', 'never'],
'function-paren-newline': 0,
'import/no-self-import': 0,
'import/no-extraneous-dependencies': 0,
'implicit-arrow-linebreak': ['warn', 'beside'],
indent: [2, 'tab', { SwitchCase: 1 }],
'no-tabs': [0, { allowIndentationTabs: true }],
'linebreak-style': 0,
'max-len': 0,
'no-else-return': ['error', { allowElseIf: true }],
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
'no-debugger': 0,
'no-new': 0,
'no-unused-vars': 1,
'no-use-before-define': 0,
'no-useless-escape': 0,
'no-param-reassign': [
'error', {
props: true,
ignorePropertyModificationsFor: ['field', 'model', 'el', 'item', 'state', 'Vue', 'vue'],
},
],
'no-underscore-dangle': [
'error', {
allow: ['_data'],
allowAfterThis: true,
},
],
'no-plusplus': [
'error', { allowForLoopAfterthoughts: true },
],
'object-curly-newline': ['error', {
ObjectPattern: { multiline: false },
}],
'operator-linebreak': ['error', 'after'],
'prefer-destructuring': [
'error', {
array: false,
object: false,
},
{
enforceForRenamedProperties: false,
},
],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'never',
}],
'vue/html-closing-bracket-newline': 0,
'vue/html-indent': 0,
'vue/html-self-closing': 0,
'vue/max-attributes-per-line': 0,
'vue/no-template-shadow': 0,
'vue/no-v-html': 0,
'vue/singleline-html-element-content-newline': 0,
},
};