1- env :
2- node : true
3-
41# enable ECMAScript features
52ecmaFeatures :
63 blockBindings : true
@@ -10,6 +7,7 @@ ecmaFeatures:
107 generators : true
118 forOf : true
129 objectLiteralShorthandProperties : true
10+ globalReturn : true
1311
1412rules :
1513 # Possible Errors
@@ -39,14 +37,9 @@ rules:
3937 # Stylistic Issues
4038 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
4139 # # use single quote, we can use double quote when escape chars
42- quotes :
43- - 2
44- - " single"
45- - " avoid-escape"
40+ quotes : [2, "single", "avoid-escape"]
4641 # # 2 space indentation
47- indent :
48- - 2
49- - 2
42+ indent : [2, 2]
5043 # # add space after comma
5144 # # set to 'warn' because of https://github.com/eslint/eslint/issues/2408
5245 comma-spacing : 1
@@ -63,35 +56,75 @@ rules:
6356 # # require parens for Constructor
6457 new-parens : 2
6558 # # max 80 length
66- max-len :
67- - 2
68- - 80
69- - 2
59+ max-len : [2, 80, 2]
7060
7161 # Strict Mode
7262 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
7363 # # 'use strict' on top
74- strict :
75- - 2
76- - " global"
64+ strict : [2, "global"]
65+
66+ # Variables
67+ # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
68+ # # disallow use of undefined variables (globals)
69+ no-undef : 2
7770
7871# Global scoped method and vars
7972globals :
80- DTRACE_HTTP_CLIENT_REQUEST : true
81- LTTNG_HTTP_CLIENT_REQUEST : true
82- COUNTER_HTTP_CLIENT_REQUEST : true
83- DTRACE_HTTP_CLIENT_RESPONSE : true
84- LTTNG_HTTP_CLIENT_RESPONSE : true
85- COUNTER_HTTP_CLIENT_RESPONSE : true
86- DTRACE_HTTP_SERVER_REQUEST : true
87- LTTNG_HTTP_SERVER_REQUEST : true
88- COUNTER_HTTP_SERVER_REQUEST : true
89- DTRACE_HTTP_SERVER_RESPONSE : true
90- LTTNG_HTTP_SERVER_RESPONSE : true
91- COUNTER_HTTP_SERVER_RESPONSE : true
92- DTRACE_NET_STREAM_END : true
93- LTTNG_NET_STREAM_END : true
94- COUNTER_NET_SERVER_CONNECTION_CLOSE : true
95- DTRACE_NET_SERVER_CONNECTION : true
96- LTTNG_NET_SERVER_CONNECTION : true
97- COUNTER_NET_SERVER_CONNECTION : true
73+ # Node
74+ __filename : false
75+ __dirname : false
76+ global : false
77+ GLOBAL : false
78+ root : false
79+ module : false
80+ require : false
81+ console : false
82+ exports : false
83+ process : false
84+ setTimeout : false
85+ clearTimeout : false
86+ setInterval : false
87+ clearInterval : false
88+ setImmediate : false
89+ clearImmediate : false
90+
91+ # Non-standard
92+ escape : false
93+ unescape : false
94+
95+ # Discouraged
96+ # Buffer : false (use require('buffer').Buffer)
97+
98+ # Types
99+ ArrayBuffer : false
100+ ArrayBufferView : false
101+ DataView : false
102+ Float32Array : false
103+ Float64Array : false
104+ Int16Array : false
105+ Int32Array : false
106+ Int8Array : false
107+ Uint16Array : false
108+ Uint32Array : false
109+ Uint8Array : false
110+ Uint8ClampedArray : false
111+
112+ # Tracing
113+ DTRACE_HTTP_CLIENT_REQUEST : false
114+ LTTNG_HTTP_CLIENT_REQUEST : false
115+ COUNTER_HTTP_CLIENT_REQUEST : false
116+ DTRACE_HTTP_CLIENT_RESPONSE : false
117+ LTTNG_HTTP_CLIENT_RESPONSE : false
118+ COUNTER_HTTP_CLIENT_RESPONSE : false
119+ DTRACE_HTTP_SERVER_REQUEST : false
120+ LTTNG_HTTP_SERVER_REQUEST : false
121+ COUNTER_HTTP_SERVER_REQUEST : false
122+ DTRACE_HTTP_SERVER_RESPONSE : false
123+ LTTNG_HTTP_SERVER_RESPONSE : false
124+ COUNTER_HTTP_SERVER_RESPONSE : false
125+ DTRACE_NET_STREAM_END : false
126+ LTTNG_NET_STREAM_END : false
127+ COUNTER_NET_SERVER_CONNECTION_CLOSE : false
128+ DTRACE_NET_SERVER_CONNECTION : false
129+ LTTNG_NET_SERVER_CONNECTION : false
130+ COUNTER_NET_SERVER_CONNECTION : false
0 commit comments