Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 435272d

Browse files
authored
Merge pull request #15 from buggerjs/jk-single-file
Move back to single file
2 parents 8262e2d + 15e7917 commit 435272d

26 files changed

+2247
-1614
lines changed

.eslintrc

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

0 commit comments

Comments
 (0)