Skip to content

Commit f05f9cb

Browse files
committed
Initial commit
0 parents  commit f05f9cb

File tree

13 files changed

+3359
-0
lines changed

13 files changed

+3359
-0
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"stage-0"
5+
]
6+
}

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
10+
[*.js]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.json]
15+
indent_style = space
16+
indent_size = 2
17+
insert_final_newline = false
18+
19+
[.babelrc]
20+
indent_style = space
21+
indent_size = 2
22+
insert_final_newline = false
23+
24+
[*.yml]
25+
indent_style = space
26+
indent_size = 2
27+
insert_final_newline = false
28+
29+
[*.md]
30+
indent_style = space
31+
indent_size = 2

.eslintrc.yml

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
---
2+
env:
3+
node: true
4+
es6: true
5+
6+
parser: "babel-eslint"
7+
8+
parserOptions:
9+
sourceType: module
10+
11+
rules:
12+
indent:
13+
- 2
14+
- 2
15+
- SwitchCase: 1
16+
no-mixed-spaces-and-tabs:
17+
- 1
18+
19+
max-len:
20+
- 1
21+
- 80
22+
- 4
23+
# - ignoreComments: true
24+
# ignoreUrls: true
25+
26+
no-extra-semi: 2
27+
semi-spacing:
28+
- 2
29+
- before: false
30+
after: true
31+
semi:
32+
- 2
33+
- always
34+
35+
no-extra-boolean-cast: 2
36+
37+
radix: 2
38+
wrap-iife:
39+
- 2
40+
- inside
41+
yoda: 2
42+
43+
quotes:
44+
- 2
45+
- single
46+
47+
# Variables
48+
no-shadow: 2
49+
no-delete-var: 2
50+
no-label-var: 2
51+
no-shadow-restricted-names: 2
52+
no-undef-init: 2
53+
no-undef:
54+
- 2
55+
- typeof: true
56+
no-unused-vars:
57+
- 2
58+
- vars: all
59+
args: none
60+
no-use-before-define:
61+
- 2
62+
- nofunc
63+
64+
# Node.js
65+
no-path-concat: 2
66+
no-restricted-modules:
67+
- 2
68+
- domain
69+
- freelist
70+
- smalloc
71+
- sys
72+
73+
# Stylistic Issues
74+
brace-style:
75+
- 2
76+
- 1tbs
77+
- allowSingleLine: false
78+
camelcase:
79+
- 2
80+
- properties: always
81+
comma-spacing:
82+
- 2
83+
- before: false
84+
after: true
85+
comma-style:
86+
- 2
87+
- last
88+
comma-dangle:
89+
- 2
90+
- never
91+
92+
no-unreachable: 2
93+
no-var: 2
94+
default-case: 2
95+
96+
# Checking
97+
eqeqeq:
98+
- 2
99+
- always
100+
use-isnan: 2
101+
102+
# Spaces
103+
array-bracket-spacing:
104+
- 2
105+
- never
106+
107+
eol-last: 2
108+
no-multiple-empty-lines:
109+
- 2
110+
- max: 2
111+
112+
linebreak-style:
113+
- 2
114+
- unix
115+
116+
keyword-spacing:
117+
- 2
118+
- before: true
119+
after: true
120+
121+
space-before-blocks:
122+
- 2
123+
- always
124+
space-before-function-paren:
125+
- 2
126+
- anonymous: always
127+
named: never
128+
space-in-parens:
129+
- 2
130+
- never
131+
space-infix-ops: 2
132+
space-unary-ops: 2
133+
134+
# JSDOC
135+
require-jsdoc: 1
136+
# valid-jsdoc:
137+
# - 2
138+
# - requireReturn: false
139+
# prefer:
140+
# returns: return
141+
142+
new-parens: 2
143+
144+
# ES2015
145+
arrow-parens:
146+
- 2
147+
- always
148+
arrow-spacing:
149+
- 2
150+
- before: true
151+
after: true
152+
constructor-super: 2
153+
generator-star-spacing:
154+
- 2
155+
- both
156+
no-class-assign: 2
157+
no-const-assign: 2
158+
no-dupe-class-members: 2
159+
no-this-before-super: 2
160+
...

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Git
2+
.git/
3+
4+
# NPM
5+
node_modules/
6+
7+
# Lib
8+
lib/
9+
10+
# Coverage
11+
coverage/

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: node_js
2+
node_js: "6"
3+
4+
cache:
5+
yarn: true
6+
7+
env:
8+
global:
9+
- "NODE_ENV=test"
10+
- "YARN_VERSION=0.18.1"
11+
12+
before_install:
13+
# Instal deps
14+
- "npm install -g yarn@${YARN_VERSION}"
15+
- "yarn global add coveralls --no-progress"
16+
- "yarn global add codeclimate-test-reporter --no-progress"
17+
- "(NODE_ENV=development && yarn install --ignore-scripts --no-progress)"
18+
- "yarn list"
19+
20+
script:
21+
# Lint
22+
- "npm run lint"
23+
# Build
24+
- "npm run build"
25+
# Test
26+
- "npm run test-ci"
27+
28+
after_script:
29+
# coveralls
30+
- "cat ./coverage/lcov.info | coveralls"
31+
# codeclimate
32+
- "cat ./coverage/lcov.info | codeclimate-test-reporter"
33+
34+
branches:
35+
except:
36+
- gh-pages

LICENSE

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

0 commit comments

Comments
 (0)