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
49 ## require spaces operator like var sum = 1 + 1;
51 ## require spaces return, throw, case
52 space-return-throw-case: 2
53 ## no space before function, eg. 'function()'
54 space-before-function-paren: [2, "never"]
55 ## require space before blocks, eg 'function() {'
56 space-before-blocks: [2, "always"]
57 ## require parens for Constructor
61 ## max 2 consecutive empty lines
62 no-multiple-empty-lines: [2, {max: 2}]
63 ## require newline at end of files
69 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
70 ## 'use strict' on top
74 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
75 ## disallow use of undefined variables (globals)
78 # Custom rules in tools/eslint-rules
81 # Global scoped method and vars
83 DTRACE_HTTP_CLIENT_REQUEST : false
84 LTTNG_HTTP_CLIENT_REQUEST : false
85 COUNTER_HTTP_CLIENT_REQUEST : false
86 DTRACE_HTTP_CLIENT_RESPONSE : false
87 LTTNG_HTTP_CLIENT_RESPONSE : false
88 COUNTER_HTTP_CLIENT_RESPONSE : false
89 DTRACE_HTTP_SERVER_REQUEST : false
90 LTTNG_HTTP_SERVER_REQUEST : false
91 COUNTER_HTTP_SERVER_REQUEST : false
92 DTRACE_HTTP_SERVER_RESPONSE : false
93 LTTNG_HTTP_SERVER_RESPONSE : false
94 COUNTER_HTTP_SERVER_RESPONSE : false
95 DTRACE_NET_STREAM_END : false
96 LTTNG_NET_STREAM_END : false
97 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
98 DTRACE_NET_SERVER_CONNECTION : false
99 LTTNG_NET_SERVER_CONNECTION : false
100 COUNTER_NET_SERVER_CONNECTION : false