forked from DestinyItemManager/DIM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
124 lines (124 loc) · 3.45 KB
/
.eslintrc
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"env": {
"es6": true,
"browser": true,
"jquery": true,
"node": true
},
"extends": "eslint:recommended",
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"globals": {
"_gaq": true,
"chrome": true,
"gapi": true,
"$DIM_FLAVOR": true,
"$DIM_CHANGELOG": true,
"$DIM_VERSION": true,
"$DIM_API_KEY": true,
"$DIM_AUTH_URL": true,
"$DIM_WEB_API_KEY": true,
"$DIM_WEB_AUTH_URL": true,
},
"rules": {
"array-callback-return": "error",
"block-scoped-var": "error",
"consistent-return": "error",
"curly": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-eq-null": "error",
"no-extra-bind": "error",
"no-fallthrough": "off",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-lone-blocks": "error",
"no-multi-spaces": "error",
"no-new": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["error", {
"argsIgnorePattern": "(^e$|^_)"
}],
"no-useless-call": "error",
"no-useless-escape": "error",
"no-void": "error",
"radix": "error",
"wrap-iife": ["error", "inside"],
"yoda": "error",
"indent": ["error", 2],
"max-len": "off",
"no-console": "off",
"no-multiple-empty-lines": "off",
"array-bracket-spacing": "error",
"block-spacing": "error",
"camelcase": ["error", {
"properties": "never"
}],
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-negated-condition": "error",
"no-new-object": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"one-var": ["error", "never"],
"operator-linebreak": ["error"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "as-needed"],
"quotes": "off",
"semi": "error",
"semi-spacing": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": ["error", "always", {
"exceptions": ["-", "*"]
}],
"arrow-parens": "error",
"arrow-spacing": "error",
"constructor-super": "error",
"generator-star-spacing": "error",
"no-class-assign": "error",
"no-confusing-arrow": ["error", {
"allowParens": true
}],
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-new-symbol": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"require-yield": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error"
}
}