forked from eddysant/photo-slap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
97 lines (97 loc) · 2.83 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"mocha":true,
"node": true,
"jquery":true
},
"parser": "esprima",
"rules": {
"comma-dangle": ["error", "never"],
"no-cond-assign": ["error", "except-parens"],
"no-constant-condition": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": ["error", { "skipStrings": true, "skipComments": true, "skipTemplates": true }],
"no-negated-in-lhs": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"use-isnan": "error",
"valid-typeof": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"complexity": ["error", 10],
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"eqeqeq": ["error", "smart"],
"no-case-declarations": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-loop-func": "error",
"no-lone-blocks": "error",
"no-magic-numbers": ["error", { "ignore": [0, 1] }],
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-useless-call": "error",
"no-useless-escape": "error",
"no-with": "error",
"vars-on-top": "error",
"callback-return": "error",
"global-require": "error",
"no-mixed-requires": "error",
"array-bracket-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"indent": ["error", 2],
"keyword-spacing": ["error", { "before": true, "after": true }],
"max-depth": ["error", 3],
"max-nested-callbacks": ["error", 3],
"max-statements": ["error", 30],
"new-cap": ["error", { "newIsCap": true }],
"new-parens": "error",
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"no-var": "error",
"no-duplicate-imports": "error",
"no-const-assign": "error",
"space-in-parens": ["error", "never"],
"space-before-blocks": "error",
"semi": "error"
}
}