4 # enable ECMAScript features
15 # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
16 ## check debugger sentence
18 ## check duplicate arguments
20 ## check duplicate object keys
22 ## check duplicate switch-case
24 ## disallow assignment of exceptional params
26 ## disallow use of reserved words as keys like enum, class
28 ## disallow unreachable code
30 ## require valid typeof compared string like typeof foo === 'strnig'
34 # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
35 ## require falls through comment on switch-case
39 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
40 ## use single quote, we can use double quote when escape chars
45 ## 2 space indentation
49 ## add space after comma
50 ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
54 ## require spaces operator like var sum = 1 + 1;
56 ## require spaces return, throw, case
57 space-return-throw-case: 2
58 ## no space before function, eg. 'function()'
59 space-before-function-paren: [2, "never"]
60 ## require space before blocks, eg 'function() {'
61 space-before-blocks: [2, "always"]
62 ## require parens for Constructor
71 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
72 ## 'use strict' on top
77 # Global scoped method and vars
79 DTRACE_HTTP_CLIENT_REQUEST: true
80 LTTNG_HTTP_CLIENT_REQUEST: true
81 COUNTER_HTTP_CLIENT_REQUEST: true
82 DTRACE_HTTP_CLIENT_RESPONSE: true
83 LTTNG_HTTP_CLIENT_RESPONSE: true
84 COUNTER_HTTP_CLIENT_RESPONSE: true
85 DTRACE_HTTP_SERVER_REQUEST: true
86 LTTNG_HTTP_SERVER_REQUEST: true
87 COUNTER_HTTP_SERVER_REQUEST: true
88 DTRACE_HTTP_SERVER_RESPONSE: true
89 LTTNG_HTTP_SERVER_RESPONSE: true
90 COUNTER_HTTP_SERVER_RESPONSE: true
91 DTRACE_NET_STREAM_END: true
92 LTTNG_NET_STREAM_END: true
93 COUNTER_NET_SERVER_CONNECTION_CLOSE: true
94 DTRACE_NET_SERVER_CONNECTION: true
95 LTTNG_NET_SERVER_CONNECTION: true
96 COUNTER_NET_SERVER_CONNECTION: true