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
64 # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
65 ## 'use strict' on top
69 # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
70 ## disallow use of undefined variables (globals)
73 # Custom rules in tools/eslint-rules
76 # Global scoped method and vars
78 DTRACE_HTTP_CLIENT_REQUEST : false
79 LTTNG_HTTP_CLIENT_REQUEST : false
80 COUNTER_HTTP_CLIENT_REQUEST : false
81 DTRACE_HTTP_CLIENT_RESPONSE : false
82 LTTNG_HTTP_CLIENT_RESPONSE : false
83 COUNTER_HTTP_CLIENT_RESPONSE : false
84 DTRACE_HTTP_SERVER_REQUEST : false
85 LTTNG_HTTP_SERVER_REQUEST : false
86 COUNTER_HTTP_SERVER_REQUEST : false
87 DTRACE_HTTP_SERVER_RESPONSE : false
88 LTTNG_HTTP_SERVER_RESPONSE : false
89 COUNTER_HTTP_SERVER_RESPONSE : false
90 DTRACE_NET_STREAM_END : false
91 LTTNG_NET_STREAM_END : false
92 COUNTER_NET_SERVER_CONNECTION_CLOSE : false
93 DTRACE_NET_SERVER_CONNECTION : false
94 LTTNG_NET_SERVER_CONNECTION : false
95 COUNTER_NET_SERVER_CONNECTION : false