@@ -39,14 +39,9 @@ rules:
3939 # Stylistic Issues
4040 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
4141 ## use single quote, we can use double quote when escape chars
42- quotes:
43- - 2
44- - "single"
45- - "avoid-escape"
42+ quotes: [2, "single", "avoid-escape"]
4643 ## 2 space indentation
47- indent:
48- - 2
49- - 2
44+ indent: [2, 2]
5045 ## add space after comma
5146 ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
5247 comma-spacing: 1
@@ -63,35 +58,40 @@ rules:
6358 ## require parens for Constructor
6459 new-parens: 2
6560 ## max 80 length
66- max-len:
67- - 2
68- - 80
69- - 2
61+ max-len: [2, 80, 2]
7062
7163 # Strict Mode
7264 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
7365 ## 'use strict' on top
74- strict:
75- - 2
76- - "global"
66+ strict: [2, "global"]
67+
68+ # Variables
69+ # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
70+ ## disallow use of undefined variables (globals)
71+ no-undef: 2
72+
73+ # Custom rules in tools/eslint-rules
74+ require-buffer: 2
7775
7876# Global scoped method and vars
7977globals:
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
78+ DTRACE_HTTP_CLIENT_REQUEST : false
79+ LTTNG_HTTP_CLIENT_REQUEST : false
80+ COUNTER_HTTP_CLIENT_REQUEST : false
81+ DTRACE_HTTP_CLIENT_RESPONSE : false
82+ LTTNG_HTTP_CLIENT_RESPONSE : false
83+ COUNTER_HTTP_CLIENT_RESPONSE : false
84+ DTRACE_HTTP_SERVER_REQUEST : false
85+ LTTNG_HTTP_SERVER_REQUEST : false
86+ COUNTER_HTTP_SERVER_REQUEST : false
87+ DTRACE_HTTP_SERVER_RESPONSE : false
88+ LTTNG_HTTP_SERVER_RESPONSE : false
89+ COUNTER_HTTP_SERVER_RESPONSE : false
90+ DTRACE_NET_STREAM_END : false
91+ LTTNG_NET_STREAM_END : false
92+ COUNTER_NET_SERVER_CONNECTION_CLOSE : false
93+ DTRACE_NET_SERVER_CONNECTION : false
94+ LTTNG_NET_SERVER_CONNECTION : false
95+ COUNTER_NET_SERVER_CONNECTION : false
96+ escape : false
97+ unescape : false
0 commit comments