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
71 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
72 ## 'use strict' on top
76 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
77 ## disallow use of undefined variables (globals)
80 # Custom rules in tools/eslint-rules
83 # Global scoped method and vars
85 DTRACE_HTTP_CLIENT_REQUEST : false
86 LTTNG_HTTP_CLIENT_REQUEST : false
87 COUNTER_HTTP_CLIENT_REQUEST : false
88 DTRACE_HTTP_CLIENT_RESPONSE : false
89 LTTNG_HTTP_CLIENT_RESPONSE : false
90 COUNTER_HTTP_CLIENT_RESPONSE : false
91 DTRACE_HTTP_SERVER_REQUEST : false
92 LTTNG_HTTP_SERVER_REQUEST : false
93 COUNTER_HTTP_SERVER_REQUEST : false
94 DTRACE_HTTP_SERVER_RESPONSE : false
95 LTTNG_HTTP_SERVER_RESPONSE : false
96 COUNTER_HTTP_SERVER_RESPONSE : false
97 DTRACE_NET_STREAM_END : false
98 LTTNG_NET_STREAM_END : false
99 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
100 DTRACE_NET_SERVER_CONNECTION : false
101 LTTNG_NET_SERVER_CONNECTION : false
102 COUNTER_NET_SERVER_CONNECTION : false