-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.67 KB
/
.eslintrc.json
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
{
"root": true,
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"plugins": [
"vue"
],
"rules": {
// Require the use of single quotes for strings
"quotes": [
"error",
"single"
],
// Enforce semicolon usage
"semi": [
"error",
"always"
],
// Require camelCase for variable and function names
"camelcase": "error",
// Enforce consistent spacing around keywords and blocks
"keyword-spacing": "error",
// Disallow trailing spaces at the end of lines
"no-trailing-spaces": "error",
// Require strict equality (===) over loose equality (==)
"eqeqeq": "error",
// Enforce consistent spacing inside array brackets
"array-bracket-spacing": "error",
// Require a space before and after arrow function arrows
"arrow-spacing": "error",
// Enforce curly braces for blocks, even if one line
"curly": "error",
// Enforce consistent line breaks
"linebreak-style": [
"error",
"unix"
],
// Disallow unused variables
"no-unused-vars": "error",
// Enforce consistent function style, either `function` or arrow `=>`
"func-style": [
"error",
"expression"
],
// Enforce consistent object shorthand syntax
"object-shorthand": "error",
// Disallow unnecessary `return await`
"no-return-await": "error"
}
}