4 # enable ECMAScript features
12 objectLiteralShorthandProperties: true
16 # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
17 ## check debugger sentence
19 ## check duplicate arguments
21 ## check duplicate object keys
23 ## check duplicate switch-case
25 ## disallow assignment of exceptional params
27 ## disallow use of reserved words as keys like enum, class
29 ## disallow unreachable code
31 ## require valid typeof compared string like typeof foo === 'strnig'
35 # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
36 ## require falls through comment on switch-case
40 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
41 ## use single quote, we can use double quote when escape chars
46 ## 2 space indentation
50 ## add space after comma
51 ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
55 ## require spaces operator like var sum = 1 + 1;
57 ## require spaces return, throw, case
58 space-return-throw-case: 2
59 ## no space before function, eg. 'function()'
60 space-before-function-paren: [2, "never"]
61 ## require space before blocks, eg 'function() {'
62 space-before-blocks: [2, "always"]
63 ## require parens for Constructor
72 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
73 ## 'use strict' on top
78 # Global scoped method and vars
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