-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
37 lines (37 loc) · 957 Bytes
/
.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
{
"env": {
"browser": true,
"es2021": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"max-len": ["warn", {
"code": 80,
"comments": 80,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignorePattern": "^import.*|^const .*|^ *console\\."
}],
"indent": ["error", 4, {
"ignoreComments": true,
"ArrayExpression": "first",
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" },
"MemberExpression": "off"
}],
"semi": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-unused-vars": ["error", {
"vars": "all",
"varsIgnorePattern": "^_$",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": false
}]
}
}