-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
62 lines (62 loc) · 1.99 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:vue/vue3-recommended"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": "error",
"comma-style": ["error", "last"],
"curly": ["error", "multi-line", "consistent"],
"eol-last": "error",
"func-call-spacing": "error",
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "consistent"],
"indent": ["error", 2],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-extra-semi": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-redeclare": ["error", { builtinGlobals: false }],
"no-trailing-spaces": "error",
"no-unused-vars": "off",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", { consistent: true, multiline: true }],
// https://eslint.org/docs/latest/rules/object-curly-spacing
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before"],
"quote-props": ["error", "consistent-as-needed"],
"semi": ["error", "never"],
"semi-spacing": "error",
"semi-style": ["error", "last"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error",
"switch-colon-spacing": "error",
"template-curly-spacing": ["error", "never"],
"unicode-bom": "error",
},
globals: {
// method or global variable
// readonlyMethodOrVariable: "readonly",
utils: "readonly",
Vue: "readonly",
Vuetify: "readonly",
imageProcess: "readonly",
// writableMethodOrVariable: "writable"
}
}