@@ -39,14 +39,9 @@ rules:
39
39
# Stylistic Issues
40
40
# list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
41
41
## 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"]
46
43
## 2 space indentation
47
- indent:
48
- - 2
49
- - 2
44
+ indent: [2, 2]
50
45
## add space after comma
51
46
## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
52
47
comma-spacing: 1
@@ -63,35 +58,40 @@ rules:
63
58
## require parens for Constructor
64
59
new-parens: 2
65
60
## max 80 length
66
- max-len:
67
- - 2
68
- - 80
69
- - 2
61
+ max-len: [2, 80, 2]
70
62
71
63
# Strict Mode
72
64
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
73
65
## '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
77
75
78
76
# Global scoped method and vars
79
77
globals:
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