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,58 @@ 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+ DTRACE_HTTP_CLIENT_REQUEST : false
74+ LTTNG_HTTP_CLIENT_REQUEST : false
75+ COUNTER_HTTP_CLIENT_REQUEST : false
76+ DTRACE_HTTP_CLIENT_RESPONSE : false
77+ LTTNG_HTTP_CLIENT_RESPONSE : false
78+ COUNTER_HTTP_CLIENT_RESPONSE : false
79+ DTRACE_HTTP_SERVER_REQUEST : false
80+ LTTNG_HTTP_SERVER_REQUEST : false
81+ COUNTER_HTTP_SERVER_REQUEST : false
82+ DTRACE_HTTP_SERVER_RESPONSE : false
83+ LTTNG_HTTP_SERVER_RESPONSE : false
84+ COUNTER_HTTP_SERVER_RESPONSE : false
85+ DTRACE_NET_STREAM_END : false
86+ LTTNG_NET_STREAM_END : false
87+ COUNTER_NET_SERVER_CONNECTION_CLOSE : false
88+ DTRACE_NET_SERVER_CONNECTION : false
89+ LTTNG_NET_SERVER_CONNECTION : false
90+ COUNTER_NET_SERVER_CONNECTION : false
91+ __dirname : false
92+ __filename : false
93+ ArrayBuffer : false
94+ clearImmediate : false
95+ clearInterval : false
96+ clearTimeout : false
97+ console : false
98+ DataView : false
99+ escape : false
100+ exports : false
101+ global : false
102+ GLOBAL : false
103+ Intl : false
104+ module : false
105+ process : false
106+ require : false
107+ root : false
108+ setImmediate : false
109+ setInterval : false
110+ setTimeout : false
111+
112+ # Use require('buffer').Buffer
113+ # Buffer: false
0 commit comments