4 # enable ECMAScript features
12 objectLiteralShorthandProperties: true
13 objectLiteralShorthandMethods: true
18 # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
19 ## check debugger sentence
21 ## check duplicate arguments
23 ## check duplicate object keys
25 ## check duplicate switch-case
27 ## disallow assignment of exceptional params
29 ## disallow use of reserved words as keys like enum, class
31 ## disallow unreachable code
33 ## require valid typeof compared string like typeof foo === 'strnig'
37 # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
38 ## require falls through comment on switch-case
42 # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
43 ## use single quote, we can use double quote when escape chars
44 quotes: [2, "single", "avoid-escape"]
45 ## 2 space indentation
47 ## add space after comma
51 ## require spaces operator like var sum = 1 + 1;
53 ## require spaces return, throw, case
54 space-return-throw-case: 2
55 ## no space before function, eg. 'function()'
56 space-before-function-paren: [2, "never"]
57 ## require space before blocks, eg 'function() {'
58 space-before-blocks: [2, "always"]
59 ## require parens for Constructor
63 ## max 2 consecutive empty lines
64 no-multiple-empty-lines: [2, {max: 2}]
65 ## require newline at end of files
69 # require space after keywords, eg 'for (..)'
70 space-after-keywords: 2
73 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
74 ## 'use strict' on top
78 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
79 ## disallow use of undefined variables (globals)
82 # Custom rules in tools/eslint-rules
85 # Global scoped method and vars
87 DTRACE_HTTP_CLIENT_REQUEST : false
88 LTTNG_HTTP_CLIENT_REQUEST : false
89 COUNTER_HTTP_CLIENT_REQUEST : false
90 DTRACE_HTTP_CLIENT_RESPONSE : false
91 LTTNG_HTTP_CLIENT_RESPONSE : false
92 COUNTER_HTTP_CLIENT_RESPONSE : false
93 DTRACE_HTTP_SERVER_REQUEST : false
94 LTTNG_HTTP_SERVER_REQUEST : false
95 COUNTER_HTTP_SERVER_REQUEST : false
96 DTRACE_HTTP_SERVER_RESPONSE : false
97 LTTNG_HTTP_SERVER_RESPONSE : false
98 COUNTER_HTTP_SERVER_RESPONSE : false
99 DTRACE_NET_STREAM_END : false
100 LTTNG_NET_STREAM_END : false
101 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
102 DTRACE_NET_SERVER_CONNECTION : false
103 LTTNG_NET_SERVER_CONNECTION : false
104 COUNTER_NET_SERVER_CONNECTION : false