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
42 quotes: [2, "single", "avoid-escape"]
43 ## 2 space indentation
45 ## add space after comma
46 ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
50 ## require spaces operator like var sum = 1 + 1;
52 ## require spaces return, throw, case
53 space-return-throw-case: 2
54 ## no space before function, eg. 'function()'
55 space-before-function-paren: [2, "never"]
56 ## require space before blocks, eg 'function() {'
57 space-before-blocks: [2, "always"]
58 ## require parens for Constructor
62 ## max 2 consecutive empty lines
63 no-multiple-empty-lines: [2, {max: 2}]
64 ## require newline at end of files
70 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
71 ## 'use strict' on top
75 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
76 ## disallow use of undefined variables (globals)
79 # Custom rules in tools/eslint-rules
82 # Global scoped method and vars
84 DTRACE_HTTP_CLIENT_REQUEST : false
85 LTTNG_HTTP_CLIENT_REQUEST : false
86 COUNTER_HTTP_CLIENT_REQUEST : false
87 DTRACE_HTTP_CLIENT_RESPONSE : false
88 LTTNG_HTTP_CLIENT_RESPONSE : false
89 COUNTER_HTTP_CLIENT_RESPONSE : false
90 DTRACE_HTTP_SERVER_REQUEST : false
91 LTTNG_HTTP_SERVER_REQUEST : false
92 COUNTER_HTTP_SERVER_REQUEST : false
93 DTRACE_HTTP_SERVER_RESPONSE : false
94 LTTNG_HTTP_SERVER_RESPONSE : false
95 COUNTER_HTTP_SERVER_RESPONSE : false
96 DTRACE_NET_STREAM_END : false
97 LTTNG_NET_STREAM_END : false
98 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
99 DTRACE_NET_SERVER_CONNECTION : false
100 LTTNG_NET_SERVER_CONNECTION : false
101 COUNTER_NET_SERVER_CONNECTION : false