This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
44 lines (44 loc) · 1.51 KB
/
index.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
module.exports = {
rules: {
"default-case" : 1,
"max-len" : 1,
"no-new" : 1,
"consistent-return" : 1,
"no-confusing-arrow" : 1,
"indent" : ["error", 2],
"no-tabs" : 0,
"no-underscore-dangle" : 0,
"no-plusplus" : 0,
"import/prefer-default-export" : 0,
"radix" : [ 2, "as-needed" ],
"class-methods-use-this" : 0,
"no-param-reassign" : ["error", { "props": false }],
"no-console": ["warn", { "allow": ["error"] }],
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"prefer-destructuring": ["warn", {"object": true, "array": true}],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": false }],
"radix": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "function", "next": "function" },
{ "blankLine": "always", "prev": "multiline-expression", "next": "multiline-expression" },
],
"vue/singleline-html-element-content-newline": "off",
"vue/html-closing-bracket-newline": ["error", {
"multiline": "never",
}],
"vue/max-attributes-per-line": ["error", {
"singleline": 2,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}],
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/html-self-closing": "off",
"vue/require-default-prop": "off",
},
extends: ["airbnb-base", "plugin:vue/recommended"],
plugins: ["vue"],
};