doc: simple doc typo fix
[platform/upstream/nodejs.git] / .eslintrc
1 env:
2   node: true
3   es6: true
4
5 rules:
6   # Possible Errors
7   # http://eslint.org/docs/rules/#possible-errors
8   comma-dangle: [2, "only-multiline"]
9   no-control-regex: 2
10   no-debugger: 2
11   no-dupe-args: 2
12   no-dupe-keys: 2
13   no-duplicate-case: 2
14   no-empty-character-class: 2
15   no-ex-assign: 2
16   no-extra-boolean-cast : 2
17   no-extra-parens: [2, "functions"]
18   no-extra-semi: 2
19   no-func-assign: 2
20   no-invalid-regexp: 2
21   no-irregular-whitespace: 2
22   no-negated-in-lhs: 2
23   no-obj-calls: 2
24   no-proto: 2
25   no-unexpected-multiline: 2
26   no-unreachable: 2
27   use-isnan: 2
28   valid-typeof: 2
29
30   # Best Practices
31   # http://eslint.org/docs/rules/#best-practices
32   no-fallthrough: 2
33   no-octal: 2
34   no-redeclare: 2
35   no-self-assign: 2
36   no-unused-labels: 2
37
38   # Strict Mode
39   # http://eslint.org/docs/rules/#strict-mode
40   strict: [2, "global"]
41
42   # Variables
43   # http://eslint.org/docs/rules/#variables
44   no-delete-var: 2
45   no-undef: 2
46   no-unused-vars: [2, {"args": "none"}]
47
48   # Node.js and CommonJS
49   # http://eslint.org/docs/rules/#nodejs-and-commonjs
50   no-mixed-requires: 2
51   no-new-require: 2
52   no-path-concat: 2
53   no-restricted-modules: [2, "sys", "_linklist"]
54
55   # Stylistic Issues
56   # http://eslint.org/docs/rules/#stylistic-issues
57   comma-spacing: 2
58   eol-last: 2
59   indent: [2, 2, {SwitchCase: 1}]
60   keyword-spacing: 2
61   max-len: [2, 80, 2]
62   new-parens: 2
63   no-mixed-spaces-and-tabs: 2
64   no-multiple-empty-lines: [2, {max: 2}]
65   no-trailing-spaces: 2
66   quotes: [2, "single", "avoid-escape"]
67   semi: 2
68   space-before-blocks: [2, "always"]
69   space-before-function-paren: [2, "never"]
70   space-in-parens: [2, "never"]
71   space-infix-ops: 2
72   space-unary-ops: 2
73
74   # ECMAScript 6
75   # http://eslint.org/docs/rules/#ecmascript-6
76   arrow-parens: [2, "always"]
77   arrow-spacing: [2, {"before": true, "after": true}]
78   constructor-super: 2
79   no-class-assign: 2
80   no-confusing-arrow: 2
81   no-const-assign: 2
82   no-dupe-class-members: 2
83   no-new-symbol: 2
84   no-this-before-super: 2
85   prefer-const: 2
86
87   # Custom rules in tools/eslint-rules
88   new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]
89
90
91 # Global scoped method and vars
92 globals:
93   DTRACE_HTTP_CLIENT_REQUEST           : false
94   LTTNG_HTTP_CLIENT_REQUEST            : false
95   COUNTER_HTTP_CLIENT_REQUEST          : false
96   DTRACE_HTTP_CLIENT_RESPONSE          : false
97   LTTNG_HTTP_CLIENT_RESPONSE           : false
98   COUNTER_HTTP_CLIENT_RESPONSE         : false
99   DTRACE_HTTP_SERVER_REQUEST           : false
100   LTTNG_HTTP_SERVER_REQUEST            : false
101   COUNTER_HTTP_SERVER_REQUEST          : false
102   DTRACE_HTTP_SERVER_RESPONSE          : false
103   LTTNG_HTTP_SERVER_RESPONSE           : false
104   COUNTER_HTTP_SERVER_RESPONSE         : false
105   DTRACE_NET_STREAM_END                : false
106   LTTNG_NET_STREAM_END                 : false
107   COUNTER_NET_SERVER_CONNECTION_CLOSE  : false
108   DTRACE_NET_SERVER_CONNECTION         : false
109   LTTNG_NET_SERVER_CONNECTION          : false
110   COUNTER_NET_SERVER_CONNECTION        : false