-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
82 lines (82 loc) · 2.69 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
module.exports = {
"root": true,
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
"allowImportExportEverywhere": false
},
"env": {
"browser": true
},
"extends": ["airbnb-base"],
"plugins": [
"vue"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "build/webpack.base.conf.js"
}
}
},
"rules": {
"import/extensions": ["error", "always", {
"js": "never",
"vue": "never"
}],
"import/no-extraneous-dependencies": 0,
"max-len": [1, {
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-new": 0,
"no-debugger": 2,
"comma-dangle": ["error", "never"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"brace-style": ["error", "stroustrup"],
"global-require": 0,
"no-param-reassign": 0,
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-lonely-if": 2,
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-constant-condition": ["error", { "checkLoops": false }],
"quote-props": ["error", "consistent-as-needed"],
"prefer-destructuring": 0,
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": ["error", {"allowParens": true}],
"function-paren-newline": [2, "consistent"],
"curly": ["error", "all"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 1, "maxEOF": 1 }],
"id-length": ["error", {"min": 1, "max": 32, "exceptions": ["i", "j", "k", "u", "_", "$", "t", "r", "l"]}],
"no-plusplus": 0,
"no-restricted-syntax": [2,
"LabeledStatement",
"WithStatement"
],
"no-restricted-globals": 0,
"linebreak-style": 0
// "vue/html-quotes": 2,
// "vue/v-bind-style": 2,
// "vue/v-on-style": 2,
// "vue/html-end-tags": 2,
// "vue/html-no-self-closing": 2,
// "vue/no-duplicate-attributes": 2,
// "vue/require-v-for-key": 2,
// "vue/no-async-in-computed-properties": 2,
// "vue/no-side-effects-in-computed-properties": 2,
// "vue/no-shared-component-data": 2,
// "vue/no-template-key": 2,
// "vue/return-in-computed-property": 2
}
}