This repository was archived by the owner on Feb 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
60 lines (60 loc) · 1.91 KB
/
.eslintrc.json
File metadata and controls
60 lines (60 loc) · 1.91 KB
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"amd": true
},
"extends": [
"eslint:recommended"
],
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"no-console": "error",
"no-extra-parens": "warn",
"curly": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-constructor-return": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"array-element-newline": "error",
"camelcase": "warn",
"capitalized-comments": "warn",
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": "error",
"func-call-spacing": "error",
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "consistent"],
"implicit-arrow-linebreak": ["error", "beside"],
"key-spacing": "error",
"keyword-spacing": "error",
"line-comment-position": "error",
"lines-around-comment": "error",
"lines-between-class-members": "error",
"max-depth": "warn",
"max-len": ["warn", 160],
"max-lines": "warn",
"max-lines-per-function": "warn",
"max-nested-callbacks": "warn",
"max-params": "warn",
"max-statements-per-line": ["error", { "max": 1 }],
"multiline-comment-style": "error",
"multiline-ternary": ["error", "never"],
"new-cap": "error"
}
}