forked from wireapp/wire-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
119 lines (119 loc) · 2.44 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"node": true
},
"extends": ["plugin:no-unsanitized/DOM", "plugin:react/recommended", "prettier"],
"globals": {
"$": true,
"_": true,
"adapter": true,
"amplify": true,
"Cookies": true,
"cryptobox": true,
"CryptoJS": true,
"dcodeIO": true,
"Dexie": true,
"entities": true,
"hljs": true,
"jQuery": true,
"keyboardJS": true,
"ko": true,
"libsodium": true,
"linkify": true,
"linkifyHtml": true,
"lorem_ipsum": true,
"LRUCache": true,
"marked": true,
"moment": true,
"OpenGraphMocks": true,
"pako": true,
"payload": true,
"PhoneFormat": true,
"platform": true,
"poster": true,
"Proteus": true,
"Raygun": true,
"sinon": true,
"sodium": true,
"TestFactory": true,
"twttr": true,
"UUID": true,
"wire": true,
"z": true,
"zeta": true
},
"plugins": ["jsdoc", "no-unsanitized", "prettier", "react"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"curly": 2,
"dot-notation": 2,
"jsdoc/require-hyphen-before-param-description": 2,
"no-console": [
2,
{
"allow": ["error"]
}
],
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-else-return": 2,
"no-lonely-if": 2,
"no-shadow": 2,
"no-inner-declarations": 2,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-unused-vars": [
2,
{
"args": "none"
}
],
"no-useless-return": 2,
"no-var": 2,
"one-var": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-promise-reject-errors": 2,
"prefer-spread": 2,
"prefer-template": 2,
"prettier/prettier": 2,
"react/prefer-stateless-function": 2,
"react/prop-types": 0,
"sort-keys": [
2,
"asc",
{
"caseSensitive": true,
"natural": true
}
],
"sort-vars": 2,
"valid-jsdoc": [
"error",
{
"prefer": {
"class": "class",
"return": "returns"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"object": "Object",
"String": "string"
},
"requireParamDescription": true,
"requireReturnDescription": true
}
]
}
}