Skip to content

Commit 41fd34c

Browse files
committed
first commit
0 parents  commit 41fd34c

21 files changed

+3790
-0
lines changed

.eslintrc

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es6": true
5+
},
6+
"rules": {
7+
/**
8+
* Strict mode
9+
*/
10+
// http://eslint.org/docs/rules/strict
11+
"strict": [2, "global"],
12+
13+
/**
14+
* ES6
15+
*/
16+
"no-var": 2, // http://eslint.org/docs/rules/no-var
17+
18+
/**
19+
* Variables
20+
*/
21+
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow
22+
"no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
23+
"no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars
24+
"vars": "local",
25+
"args": "after-used"
26+
}],
27+
"no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define
28+
29+
/**
30+
* Possible errors
31+
*/
32+
"comma-dangle": [2, "never"], // http://eslint.org/docs/rules/comma-dangle
33+
"no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign
34+
"no-console": 1, // http://eslint.org/docs/rules/no-console
35+
"no-debugger": 1, // http://eslint.org/docs/rules/no-debugger
36+
"no-alert": 1, // http://eslint.org/docs/rules/no-alert
37+
"no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition
38+
"no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys
39+
"no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case
40+
"no-empty": 2, // http://eslint.org/docs/rules/no-empty
41+
"no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign
42+
"no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast
43+
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi
44+
"no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign
45+
"no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations
46+
"no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp
47+
"no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace
48+
"no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls
49+
"no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays
50+
"no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable
51+
"use-isnan": 2, // http://eslint.org/docs/rules/use-isnan
52+
"block-scoped-var": 2, // http://eslint.org/docs/rules/block-scoped-var
53+
54+
/**
55+
* Best practices
56+
*/
57+
"consistent-return": 2, // http://eslint.org/docs/rules/consistent-return
58+
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly
59+
"default-case": 2, // http://eslint.org/docs/rules/default-case
60+
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation
61+
"allowKeywords": true
62+
}],
63+
"eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq
64+
"guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in
65+
"no-caller": 2, // http://eslint.org/docs/rules/no-caller
66+
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return
67+
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null
68+
"no-eval": 2, // http://eslint.org/docs/rules/no-eval
69+
"no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native
70+
"no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind
71+
"no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough
72+
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal
73+
"no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval
74+
"no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks
75+
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func
76+
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str
77+
"no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign
78+
"no-new": 2, // http://eslint.org/docs/rules/no-new
79+
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func
80+
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers
81+
"no-octal": 2, // http://eslint.org/docs/rules/no-octal
82+
"no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape
83+
"no-param-reassign": 0, // http://eslint.org/docs/rules/no-param-reassign
84+
"no-proto": 2, // http://eslint.org/docs/rules/no-proto
85+
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare
86+
"no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign
87+
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url
88+
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare
89+
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
90+
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
91+
"no-with": 2, // http://eslint.org/docs/rules/no-with
92+
"radix": 2, // http://eslint.org/docs/rules/radix
93+
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top
94+
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
95+
"yoda": 2, // http://eslint.org/docs/rules/yoda
96+
97+
/**
98+
* Style
99+
*/
100+
"indent": [2, 2], // http://eslint.org/docs/rules/
101+
"brace-style": [2, // http://eslint.org/docs/rules/brace-style
102+
"1tbs", {
103+
"allowSingleLine": true
104+
}],
105+
"quotes": [
106+
2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes
107+
],
108+
"camelcase": [2, { // http://eslint.org/docs/rules/camelcase
109+
"properties": "never"
110+
}],
111+
"comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing
112+
"before": false,
113+
"after": true
114+
}],
115+
"comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style
116+
"eol-last": 2, // http://eslint.org/docs/rules/eol-last
117+
"func-names": 0, // http://eslint.org/docs/rules/func-names
118+
"key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing
119+
"beforeColon": false,
120+
"afterColon": true
121+
}],
122+
"new-cap": [2, { // http://eslint.org/docs/rules/new-cap
123+
"newIsCap": true
124+
}],
125+
"no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines
126+
"max": 2
127+
}],
128+
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary
129+
"no-new-object": 2, // http://eslint.org/docs/rules/no-new-object
130+
"no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func
131+
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces
132+
"no-extra-parens": 2, // http://eslint.org/docs/rules/no-wrap-func
133+
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle
134+
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
135+
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks
136+
"semi": [ 2, "never" ], // http://eslint.org/docs/rules/semi
137+
"keyword-spacing": 2, // http://eslint.org/docs/rules/space-after-keywords
138+
"space-before-blocks": 2, // http://eslint.org/docs/rules/space-before-blocks
139+
"space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren
140+
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops
141+
"spaced-comment": 2, // http://eslint.org/docs/rules/spaced-line-comment
142+
}
143+
}

.github/ISSUE_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Your issue may already be reported!
2+
Please search on the [issue tracker](../) before creating one.
3+
4+
## Expected Behavior
5+
<!--- If you're describing a bug, tell us what should happen -->
6+
<!--- If you're suggesting a change/improvement, tell us how it should work -->
7+
8+
## Current Behavior
9+
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
10+
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
11+
12+
## Possible Solution
13+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
14+
<!--- or ideas how to implement the addition or change -->
15+
16+
## Steps to Reproduce (for bugs)
17+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
18+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
19+
1.
20+
2.
21+
3.
22+
4.
23+
24+
## Context
25+
<!--- How has this issue affected you? What are you trying to accomplish? -->
26+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
27+
28+
## Your Environment
29+
<!--- Include as many relevant details about the environment you experienced the bug in -->
30+
* Version used:
31+
* Node version:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
A similar PR may already be submitted!
2+
Please search among the [Pull request](../) before creating one.
3+
4+
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:
5+
6+
For more information, see the `CONTRIBUTING` guide.
7+
8+
9+
**Summary**
10+
11+
<!-- Summary of the PR -->
12+
13+
This PR fixes/implements the following **bugs/features**
14+
15+
* [ ] Bug 1
16+
* [ ] Bug 2
17+
* [ ] Feature 1
18+
* [ ] Feature 2
19+
* [ ] Breaking changes
20+
21+
<!-- You can skip this if you're fixing a typo or alike -->
22+
23+
Explain the **motivation** for making this change. What existing problem does the pull request solve?
24+
25+
<!-- Example: When "Adding a function to do X", explain why it is necessary to have a way to do X. -->
26+
27+
**Test plan (required)**
28+
29+
<!-- Make sure tests pass on both Travis and locally. -->

.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
.idea/
38+
dist/
39+
build/
40+
jspm_packages/
41+
42+
# Typescript v1 declaration files
43+
typings/
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env

.npmignore

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# source files
23+
src
24+
test
25+
scripts
26+
27+
# source maps
28+
29+
**/*.js.map
30+
**/*.spec.*
31+
32+
# config files
33+
tslint.json
34+
.gitignore
35+
.editorconfig
36+
.jscs
37+
.jshintrc
38+
.prettierrc
39+
.gitlab-ci.yml
40+
tsconfig.json
41+
.github
42+
43+
# nyc test coverage
44+
.nyc_output
45+
46+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
47+
.grunt
48+
49+
# Bower dependency directory (https://bower.io/)
50+
bower_components
51+
52+
# node-waf configuration
53+
.lock-wscript
54+
55+
# Compiled binary addons (https://nodejs.org/api/addons.html)
56+
build/Release
57+
58+
# Dependency directories
59+
node_modules/
60+
jspm_packages/
61+
62+
# TypeScript v1 declaration files
63+
typings/
64+
65+
# Optional npm cache directory
66+
.npm
67+
68+
# Optional eslint cache
69+
.eslintcache
70+
71+
# Optional REPL history
72+
.node_repl_history
73+
74+
# Output of 'npm pack'
75+
*.tgz
76+
77+
# Yarn Integrity file
78+
.yarn-integrity
79+
80+
# dotenv environment variables file
81+
.env
82+
83+
# next.js build output
84+
.next
85+

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: node_js
2+
node_js:
3+
- "6"
4+
- "7"
5+
- "8"
6+
- "9"
7+
- "10"
8+
install:
9+
- npm install
10+
- npm-install-peers
11+
script:
12+
- npm run build && npm run cover
13+
after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
14+
15+
jobs:
16+
include:
17+
- stage: npm release
18+
if: tag IS present
19+
node_js: "6"
20+
script: npm run build
21+
deploy:
22+
provider: npm
23+
email: "$NPM_EMAIL"
24+
api_key: "$NPM_TOKEN"
25+
skip_cleanup: true
26+
on:
27+
tags: true

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
This project adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## Development
6+
- nothing yet
7+
8+
## v0.0.1
9+
10+
First version!

0 commit comments

Comments
 (0)