You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'plugin:vue/recommended'// Use this if you are using Vue.js 2.x.
13
7
],
14
-
"rules": {
15
-
'semi': [
16
-
'warn',
17
-
'never',
18
-
],
19
-
'global-require': 'warn',
20
-
'no-prototype-builtins': 'warn',
21
-
'no-shadow': 'warn',
22
-
'no-cond-assign': ['warn','always'],
23
-
'no-undef': ['error',{typeof: true}],
24
-
'radix': 'warn',
25
-
'no-restricted-syntax': [
26
-
'warn',
27
-
{
28
-
selector: 'ForInStatement',
29
-
message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
30
-
},
31
-
{
32
-
selector: 'ForOfStatement',
33
-
message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
34
-
},
35
-
{
36
-
selector: 'LabeledStatement',
37
-
message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
38
-
},
39
-
{
40
-
selector: 'WithStatement',
41
-
message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
42
-
},
43
-
],
44
-
'strict': 'warn',
45
-
'lines-around-directive': 'warn',
46
-
'indent': [
47
-
'warn',
48
-
2,
49
-
{
50
-
MemberExpression: 0,
51
-
SwitchCase: 1,
52
-
},
53
-
],
54
-
'newline-per-chained-call': 'off',
55
-
'comma-dangle': [
56
-
'warn',
57
-
'always-multiline',
58
-
],
59
-
'import/no-extraneous-dependencies': 'off',
60
-
'import/newline-after-import': 'off',
61
-
'import/no-dynamic-require': 'off',
62
-
'camelcase': 'off',
63
-
'func-names': 'off',
64
-
'arrow-parens': [
65
-
'warn',
66
-
'always',
67
-
],
68
-
'prefer-const': 'warn',
69
-
'quotes': [
70
-
'warn',
71
-
'single',
72
-
{
73
-
avoidEscape: true,
74
-
allowTemplateLiterals: true,
75
-
},
76
-
],
77
-
'max-len': [
78
-
'warn',
79
-
{
80
-
code: 200,
81
-
},
82
-
],
83
-
'arrow-body-style': 'off',
84
-
'new-cap': 'warn',
85
-
'no-param-reassign': [
86
-
'warn',
87
-
{props: false},
88
-
],
89
-
'no-unused-vars': [
90
-
'warn',
91
-
{args: 'none'},
92
-
],
93
-
'consistent-return': 'off',
94
-
'no-loop-func': 'warn',
95
-
'default-case': 'warn',
96
-
'no-plusplus': [
97
-
'warn',
98
-
{allowForLoopAfterthoughts: true},
99
-
],
100
-
'no-underscore-dangle': 'off',
101
-
'no-extend-native': 'off',
102
-
'no-restricted-properties': [
103
-
'warn',
104
-
{
105
-
object: 'arguments',
106
-
property: 'callee',
107
-
message: 'arguments.callee is deprecated',
108
-
},
109
-
{
110
-
property: '__defineGetter__',
111
-
message: 'Please use Object.defineProperty instead.',
112
-
},
113
-
{
114
-
property: '__defineSetter__',
115
-
message: 'Please use Object.defineProperty instead.',
116
-
},
117
-
],
118
-
'brace-style': 'off',
119
-
'quote-props': [
120
-
'warn',
121
-
'consistent-as-needed',
122
-
],
123
-
'no-multiple-empty-lines': [
124
-
'warn',
125
-
{
126
-
max: 3,
127
-
maxEOF: 0,
128
-
maxBOF: 0,
129
-
},
130
-
],
131
-
'no-use-before-define': [
132
-
'error',
133
-
{
134
-
functions: false,// Function declarations are hoisted, so it’s safe
135
-
classes: true,// Class declarations are not hoisted, so it might be danger
0 commit comments