Skip to content

Commit dacc773

Browse files
author
Vitaly Puzrin
committed
docs & configs
0 parents  commit dacc773

11 files changed

+733
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

.eslintrc.yml

+176
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
env:
2+
node: true
3+
browser: false
4+
es6: true
5+
6+
rules:
7+
accessor-pairs: 2
8+
array-bracket-spacing: [ 2, "always", { "singleValue": true, "objectsInArrays": true, "arraysInArrays": true } ]
9+
block-scoped-var: 2
10+
block-spacing: 2
11+
brace-style: [ 2, '1tbs', { "allowSingleLine": true } ]
12+
# Postponed
13+
#callback-return: 2
14+
comma-dangle: 2
15+
comma-spacing: 2
16+
comma-style: 2
17+
computed-property-spacing: [ 2, never ]
18+
# Postponed
19+
#consistent-return: 2
20+
consistent-this: [ 2, self ]
21+
# ? change to multi
22+
curly: [ 2, 'multi-line' ]
23+
# Postponed
24+
# dot-notation: [ 2, { allowKeywords: true } ]
25+
dot-location: [ 2, 'property' ]
26+
eol-last: 2
27+
eqeqeq: 2
28+
func-style: [ 2, declaration ]
29+
# Postponed
30+
#global-require: 2
31+
guard-for-in: 2
32+
handle-callback-err: 2
33+
34+
# Postponed
35+
indent: [ 2, 2, { VariableDeclarator: { var: 2, let: 2, const: 3 }, SwitchCase: 1 } ]
36+
37+
# key-spacing: [ 2, { "align": "value" } ]
38+
keyword-spacing: 2
39+
linebreak-style: 2
40+
max-depth: [ 1, 3 ]
41+
max-nested-callbacks: [ 1, 5 ]
42+
# string can exceed 80 chars, but should not overflow github website :)
43+
max-len: [ 2, 120, 1000 ]
44+
new-cap: 2
45+
new-parens: 2
46+
# Postponed
47+
#newline-after-var: 2
48+
no-alert: 2
49+
no-array-constructor: 2
50+
no-bitwise: 2
51+
no-caller: 2
52+
#no-case-declarations: 2
53+
no-catch-shadow: 2
54+
no-cond-assign: 2
55+
no-console: 1
56+
no-constant-condition: 2
57+
no-control-regex: 2
58+
no-debugger: 1
59+
no-delete-var: 2
60+
no-div-regex: 2
61+
no-dupe-args: 2
62+
no-dupe-keys: 2
63+
no-duplicate-case: 2
64+
no-else-return: 2
65+
# Tend to drop
66+
# no-empty: 1
67+
no-empty-character-class: 2
68+
no-empty-pattern: 2
69+
no-eq-null: 2
70+
no-eval: 2
71+
no-ex-assign: 2
72+
no-extend-native: 2
73+
no-extra-bind: 2
74+
no-extra-boolean-cast: 2
75+
no-extra-semi: 2
76+
no-fallthrough: 2
77+
no-floating-decimal: 2
78+
no-func-assign: 2
79+
# Postponed
80+
#no-implicit-coercion: [2, { "boolean": true, "number": true, "string": true } ]
81+
no-implied-eval: 2
82+
no-inner-declarations: 2
83+
no-invalid-regexp: 2
84+
no-irregular-whitespace: 2
85+
no-iterator: 2
86+
no-label-var: 2
87+
no-labels: 2
88+
no-lone-blocks: 1
89+
no-lonely-if: 2
90+
no-loop-func: 2
91+
no-mixed-requires: [ 1, { "grouping": true } ]
92+
no-mixed-spaces-and-tabs: 2
93+
# Postponed
94+
#no-native-reassign: 2
95+
no-negated-in-lhs: 2
96+
# Postponed
97+
#no-nested-ternary: 2
98+
no-new: 2
99+
no-new-func: 2
100+
no-new-object: 2
101+
no-new-require: 2
102+
no-new-wrappers: 2
103+
no-obj-calls: 2
104+
no-octal: 2
105+
no-octal-escape: 2
106+
no-path-concat: 2
107+
no-proto: 2
108+
no-redeclare: 2
109+
# Postponed
110+
#no-regex-spaces: 2
111+
no-return-assign: 2
112+
no-self-compare: 2
113+
no-sequences: 2
114+
# Postponed
115+
#no-shadow: 2
116+
no-shadow-restricted-names: 2
117+
no-sparse-arrays: 2
118+
# Postponed
119+
#no-sync: 2
120+
no-trailing-spaces: 2
121+
no-undef: 2
122+
no-undef-init: 2
123+
no-undefined: 2
124+
no-unexpected-multiline: 2
125+
no-unreachable: 2
126+
no-unused-expressions: 2
127+
no-unused-vars: 2
128+
no-use-before-define: 2
129+
no-void: 2
130+
no-with: 2
131+
object-curly-spacing: [ 2, always, { "objectsInObjects": true, "arraysInObjects": true } ]
132+
operator-assignment: 1
133+
# Postponed
134+
#operator-linebreak: [ 2, after ]
135+
semi: 2
136+
semi-spacing: 2
137+
space-before-function-paren: [ 2, { "anonymous": "always", "named": "never" } ]
138+
space-in-parens: [ 2, never ]
139+
space-infix-ops: 2
140+
space-unary-ops: 2
141+
# Postponed
142+
#spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ]
143+
strict: [ 2, global ]
144+
quotes: [ 2, single, avoid-escape ]
145+
quote-props: [ 1, 'as-needed', { "keywords": true } ]
146+
radix: 2
147+
use-isnan: 2
148+
valid-typeof: 2
149+
yoda: [ 2, never, { "exceptRange": true } ]
150+
151+
#
152+
# es6
153+
#
154+
arrow-body-style: [ 1, "as-needed" ]
155+
arrow-parens: [ 1, "as-needed" ]
156+
arrow-spacing: 2
157+
constructor-super: 2
158+
generator-star-spacing: [ 2, {"before": false, "after": true } ]
159+
no-class-assign: 2
160+
no-confusing-arrow: [ 1, { allowParens: true } ]
161+
no-const-assign: 2
162+
#no-constant-condition: 2
163+
no-dupe-class-members: 2
164+
no-this-before-super: 2
165+
# Postponed
166+
#no-var: 2
167+
object-shorthand: 1
168+
# Postponed
169+
#prefer-arrow-callback: 1
170+
# Postponed
171+
#prefer-const: 1
172+
#prefer-reflect
173+
#prefer-spread
174+
# Postponed
175+
#prefer-template: 1
176+
require-yield: 1

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
coverage
3+
*.log
4+
*.swp

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
node_js:
3+
- "6"
4+
services:
5+
- redis
6+
addons:
7+
apt:
8+
packages:
9+
- redis-server
10+
after_success: npm run report-coveralls
11+
sudo: false

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0.1.0 / WIP
2+
------------------
3+
4+
- First release.

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Vitaly Puzrin.
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)