1root: true 2 3env: 4 node: true 5 es6: true 6 7parserOptions: 8 ecmaVersion: 2017 9 10rules: 11 # Possible Errors 12 # http://eslint.org/docs/rules/#possible-errors 13 comma-dangle: [2, only-multiline] 14 no-control-regex: 2 15 no-debugger: 2 16 no-dupe-args: 2 17 no-dupe-keys: 2 18 no-duplicate-case: 2 19 no-empty-character-class: 2 20 no-ex-assign: 2 21 no-extra-boolean-cast: 2 22 no-extra-parens: [2, functions] 23 no-extra-semi: 2 24 no-func-assign: 2 25 no-invalid-regexp: 2 26 no-irregular-whitespace: 2 27 no-obj-calls: 2 28 no-proto: 2 29 no-template-curly-in-string: 2 30 no-unexpected-multiline: 2 31 no-unreachable: 2 32 no-unsafe-negation: 2 33 use-isnan: 2 34 valid-typeof: 2 35 36 # Best Practices 37 # http://eslint.org/docs/rules/#best-practices 38 dot-location: [2, property] 39 no-fallthrough: 2 40 no-global-assign: 2 41 no-multi-spaces: 2 42 no-octal: 2 43 no-redeclare: 2 44 no-self-assign: 2 45 no-unused-labels: 2 46 no-useless-call: 2 47 no-useless-escape: 2 48 no-void: 2 49 no-with: 2 50 51 # Strict Mode 52 # http://eslint.org/docs/rules/#strict-mode 53 strict: [2, global] 54 55 # Variables 56 # http://eslint.org/docs/rules/#variables 57 no-delete-var: 2 58 no-undef: 2 59 no-unused-vars: [2, {args: none}] 60 61 # Node.js and CommonJS 62 # http://eslint.org/docs/rules/#nodejs-and-commonjs 63 no-mixed-requires: 2 64 no-new-require: 2 65 no-path-concat: 2 66 no-restricted-modules: [2, sys, _linklist] 67 no-restricted-properties: [2, { 68 object: assert, 69 property: deepEqual, 70 message: Please use assert.deepStrictEqual(). 71 }, { 72 property: __defineGetter__, 73 message: __defineGetter__ is deprecated. 74 }, { 75 property: __defineSetter__, 76 message: __defineSetter__ is deprecated. 77 }] 78 79 # Stylistic Issues 80 # http://eslint.org/docs/rules/#stylistic-issues 81 brace-style: [2, 1tbs, {allowSingleLine: true}] 82 comma-spacing: 2 83 comma-style: 2 84 computed-property-spacing: 2 85 eol-last: 2 86 func-call-spacing: 2 87 func-name-matching: 2 88 indent: [2, 2, {SwitchCase: 1, MemberExpression: 1}] 89 key-spacing: [2, {mode: minimum}] 90 keyword-spacing: 2 91 linebreak-style: [2, unix] 92 max-len: [2, 80, 2] 93 new-parens: 2 94 no-mixed-spaces-and-tabs: 2 95 no-multiple-empty-lines: [2, {max: 2, maxEOF: 0, maxBOF: 0}] 96 no-tabs: 2 97 no-trailing-spaces: 2 98 quotes: [2, single, avoid-escape] 99 semi: 2 100 semi-spacing: 2 101 space-before-blocks: [2, always] 102 space-before-function-paren: [2, never] 103 space-in-parens: [2, never] 104 space-infix-ops: 2 105 space-unary-ops: 2 106 107 # ECMAScript 6 108 # http://eslint.org/docs/rules/#ecmascript-6 109 arrow-parens: [2, always] 110 arrow-spacing: [2, {before: true, after: true}] 111 constructor-super: 2 112 no-class-assign: 2 113 no-confusing-arrow: 2 114 no-const-assign: 2 115 no-dupe-class-members: 2 116 no-new-symbol: 2 117 no-this-before-super: 2 118 prefer-const: [2, {ignoreReadBeforeAssign: true}] 119 rest-spread-spacing: 2 120 template-curly-spacing: 2 121 122 # Custom rules in tools/eslint-rules 123 align-function-arguments: 2 124 align-multiline-assignment: 2 125 assert-fail-single-argument: 2 126 new-with-error: [2, Error, RangeError, TypeError, SyntaxError, ReferenceError] 127 128# Global scoped method and vars 129globals: 130 COUNTER_HTTP_CLIENT_REQUEST: false 131 COUNTER_HTTP_CLIENT_RESPONSE: false 132 COUNTER_HTTP_SERVER_REQUEST: false 133 COUNTER_HTTP_SERVER_RESPONSE: false 134 COUNTER_NET_SERVER_CONNECTION: false 135 COUNTER_NET_SERVER_CONNECTION_CLOSE: false 136 DTRACE_HTTP_CLIENT_REQUEST: false 137 DTRACE_HTTP_CLIENT_RESPONSE: false 138 DTRACE_HTTP_SERVER_REQUEST: false 139 DTRACE_HTTP_SERVER_RESPONSE: false 140 DTRACE_NET_SERVER_CONNECTION: false 141 DTRACE_NET_STREAM_END: false 142 LTTNG_HTTP_CLIENT_REQUEST: false 143 LTTNG_HTTP_CLIENT_RESPONSE: false 144 LTTNG_HTTP_SERVER_REQUEST: false 145 LTTNG_HTTP_SERVER_RESPONSE: false 146 LTTNG_NET_SERVER_CONNECTION: false 147 LTTNG_NET_STREAM_END: false 148