UNPKG

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