readline: turn emitKeys into a streaming parser
[platform/upstream/nodejs.git] / .eslintrc
1 env:
2   node: true
3
4 # enable ECMAScript features
5 ecmaFeatures:
6   blockBindings: true
7   templateStrings: true
8   octalLiterals: true
9   binaryLiterals: true
10   generators: true
11
12 rules:
13   # Possible Errors
14   # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
15   ## check debugger sentence
16   no-debugger: 2
17   ## check duplicate arguments
18   no-dupe-args: 2
19   ## check duplicate object keys
20   no-dupe-keys: 2
21   ## check duplicate switch-case
22   no-duplicate-case: 2
23   ## disallow assignment of exceptional params
24   no-ex-assign: 2
25   ## disallow use of reserved words as keys like enum, class
26   no-reserved-keys: 2
27   ## disallow unreachable code
28   no-unreachable: 2
29   ## require valid typeof compared string like typeof foo === 'strnig'
30   valid-typeof: 2
31
32   # Best Practices
33   # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
34   ## require falls through comment on switch-case
35   no-fallthrough: 2
36
37   # Stylistic Issues
38   # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
39   ## use single quote, we can use double quote when escape chars
40   quotes:
41     - 2
42     - "single"
43     - "avoid-escape"
44   ## 2 space indentation
45   indent:
46     - 2
47     - 2
48   ## add space after comma
49   comma-spacing: 2
50   ## put semi-colon
51   semi: 2
52   ## require spaces operator like var sum = 1 + 1;
53   space-infix-ops: 2
54   ## require spaces return, throw, case
55   space-return-throw-case: 2
56   ## require parens for Constructor
57   new-parens: 2
58   ## max 80 length
59   max-len: 
60     - 2
61     - 80
62     - 2
63
64
65   # Strict Mode
66   # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
67   ## 'use strict' on top
68   strict: 
69     - 2
70     - "global"
71
72 # Global scoped method and vars
73 globals: 
74   DTRACE_HTTP_CLIENT_REQUEST: true
75   LTTNG_HTTP_CLIENT_REQUEST: true
76   COUNTER_HTTP_CLIENT_REQUEST: true
77   DTRACE_HTTP_CLIENT_RESPONSE: true
78   LTTNG_HTTP_CLIENT_RESPONSE: true
79   COUNTER_HTTP_CLIENT_RESPONSE: true
80   DTRACE_HTTP_SERVER_REQUEST: true
81   LTTNG_HTTP_SERVER_REQUEST: true
82   COUNTER_HTTP_SERVER_REQUEST: true
83   DTRACE_HTTP_SERVER_RESPONSE: true
84   LTTNG_HTTP_SERVER_RESPONSE: true
85   COUNTER_HTTP_SERVER_RESPONSE: true
86   DTRACE_NET_STREAM_END: true
87   LTTNG_NET_STREAM_END: true
88   COUNTER_NET_SERVER_CONNECTION_CLOSE: true
89   DTRACE_NET_SERVER_CONNECTION: true
90   LTTNG_NET_SERVER_CONNECTION: true
91   COUNTER_NET_SERVER_CONNECTION: true
92