-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
88 lines (88 loc) · 2.46 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"_": true,
"Vue": true,
"UIkit": true,
"Theme": true,
"marked": true,
"flatpickr": true,
"grecaptcha": true,
"$pagekit": true,
"$editor": true,
"CodeMirror": true,
"tinyMCE": true
},
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"vue"
],
"extends": [
"airbnb-base",
"plugin:vue/recommended"
],
"rules": {
"quotes": [2, "single", "avoid-escape"],
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"strict": 0,
"new-cap": 0,
"camelcase": 0,
"no-underscore-dangle": 0,
"no-new": 0,
"no-alert": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"indent": ["error", 4, { "SwitchCase": 1 }],
"comma-dangle": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"max-len": 0,
"no-console": ["error", { allow: ["warn", "error"] }],
"prefer-spread": 0,
"operator-assignment": ["error", "never"],
"no-plusplus": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-restricted-globals": 0,
"import/no-unresolved": 0,
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"prefer-destructuring": 0,
"no-control-regex": 0,
"no-prototype-builtins": 0,
"no-useless-escape": 0,
"prefer-rest-params": 0,
"no-mixed-operators": 0,
"radix": 0,
"func-names": 0,
"object-curly-newline": ["error", { "consistent": true }],
"vue/html-indent": ["error", 4, {
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}],
"vue/max-attributes-per-line": ["error", {
"singleline": 9,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}],
"vue/no-v-html": 0,
"vue/require-prop-types": 0
}
}