4 # enable ECMAScript features
12 objectLiteralShorthandMethods: true
13 objectLiteralShorthandProperties: true
19 # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
20 ## check debugger sentence
22 ## check duplicate arguments
24 ## check duplicate object keys
26 ## check duplicate switch-case
28 ## disallow assignment of exceptional params
30 ## disallow use of reserved words as keys like enum, class
32 ## disallow unreachable code
34 ## require valid typeof compared string like typeof foo === 'strnig'
38 # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
39 ## require falls through comment on switch-case
43 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
44 ## use single quote, we can use double quote when escape chars
45 quotes: [2, "single", "avoid-escape"]
46 ## 2 space indentation
48 ## add space after comma
52 ## require spaces operator like var sum = 1 + 1;
54 ## require spaces return, throw, case
55 space-return-throw-case: 2
56 ## no space before function, eg. 'function()'
57 space-before-function-paren: [2, "never"]
58 ## require space before blocks, eg 'function() {'
59 space-before-blocks: [2, "always"]
60 ## require parens for Constructor
64 ## max 2 consecutive empty lines
65 no-multiple-empty-lines: [2, {max: 2}]
66 ## require newline at end of files
70 # require space after keywords, eg 'for (..)'
71 space-after-keywords: 2
74 # list: http://eslint.org/docs/rules/#ecmascript-6
75 ## Suggest using 'const' wherever possible
79 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
80 ## 'use strict' on top
84 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
85 ## disallow use of undefined variables (globals)
88 # Custom rules in tools/eslint-rules
90 new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]
93 # Global scoped method and vars
95 DTRACE_HTTP_CLIENT_REQUEST : false
96 LTTNG_HTTP_CLIENT_REQUEST : false
97 COUNTER_HTTP_CLIENT_REQUEST : false
98 DTRACE_HTTP_CLIENT_RESPONSE : false
99 LTTNG_HTTP_CLIENT_RESPONSE : false
100 COUNTER_HTTP_CLIENT_RESPONSE : false
101 DTRACE_HTTP_SERVER_REQUEST : false
102 LTTNG_HTTP_SERVER_REQUEST : false
103 COUNTER_HTTP_SERVER_REQUEST : false
104 DTRACE_HTTP_SERVER_RESPONSE : false
105 LTTNG_HTTP_SERVER_RESPONSE : false
106 COUNTER_HTTP_SERVER_RESPONSE : false
107 DTRACE_NET_STREAM_END : false
108 LTTNG_NET_STREAM_END : false
109 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
110 DTRACE_NET_SERVER_CONNECTION : false
111 LTTNG_NET_SERVER_CONNECTION : false
112 COUNTER_NET_SERVER_CONNECTION : false