forked from BureauTech/BureAuto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.63 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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
extends: ["eslint:recommended", "plugin:vue/essential"],
parserOptions: {
ecmaVersion: 12
},
plugins: ["vue"],
rules: {
"indent": ["error", 4],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"array-bracket-newline": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"array-element-newline": ["error", "never"],
"func-style": ["error", "expression"],
"brace-style": ["warn", "1tbs", {"allowSingleLine": false}],
"function-call-argument-newline": ["error", "never"],
"function-paren-newline": ["error", "never"],
"implicit-arrow-linebreak": ["error", "beside"],
"no-var": "error",
"max-len": ["warn", {"code": 140, "comments": 140, "tabWidth": 4}],
"curly": ["warn", "multi-line", "consistent"],
"no-else-return": "warn",
"key-spacing": ["warn", {"mode": "strict"}],
"object-curly-spacing": ["warn", "never"],
"space-before-blocks": ["warn", "always"],
"space-in-parens": ["warn", "never"],
"space-before-function-paren": ["warn", "never"],
"require-atomic-updates": "off",
"no-duplicate-imports": "error",
"no-confusing-arrow": "error",
"prefer-const": "error",
"vue/comment-directive": 0
}
}