Skip to content

Commit 57c7e9f

Browse files
author
Oskar Karlsson
authored
Merge pull request #2 from welcoMattic/master
🔨 Heavy refactoring
2 parents 1f30796 + 9835ce1 commit 57c7e9f

File tree

12 files changed

+1292
-142
lines changed

12 files changed

+1292
-142
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
tab_width = 4
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 0 additions & 35 deletions
This file was deleted.

.eslintrc.js

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"parserOptions": {
8+
"sourceType": "module"
9+
},
10+
"rules": {
11+
"accessor-pairs": "error",
12+
"array-bracket-spacing": "error",
13+
"array-callback-return": "error",
14+
"arrow-body-style": "off",
15+
"arrow-parens": "off",
16+
"arrow-spacing": [
17+
"error",
18+
{
19+
"after": true,
20+
"before": true
21+
}
22+
],
23+
"block-scoped-var": "error",
24+
"block-spacing": "error",
25+
"brace-style": "error",
26+
"callback-return": "error",
27+
"camelcase": "error",
28+
"class-methods-use-this": "error",
29+
"comma-dangle": "error",
30+
"comma-spacing": [
31+
"error",
32+
{
33+
"after": true,
34+
"before": false
35+
}
36+
],
37+
"comma-style": [
38+
"error",
39+
"last"
40+
],
41+
"complexity": "error",
42+
"computed-property-spacing": [
43+
"error",
44+
"never"
45+
],
46+
"consistent-return": "error",
47+
"consistent-this": "error",
48+
"curly": "error",
49+
"default-case": "error",
50+
"dot-location": [
51+
"error",
52+
"property"
53+
],
54+
"dot-notation": [
55+
"error",
56+
{
57+
"allowKeywords": true
58+
}
59+
],
60+
"eol-last": "error",
61+
"eqeqeq": "error",
62+
"func-call-spacing": "error",
63+
"func-name-matching": "error",
64+
"func-names": "error",
65+
"func-style": [
66+
"error",
67+
"expression"
68+
],
69+
"generator-star-spacing": "error",
70+
"global-require": "error",
71+
"guard-for-in": "error",
72+
"handle-callback-err": "error",
73+
"id-blacklist": "error",
74+
"id-length": "error",
75+
"id-match": "error",
76+
"indent": "off",
77+
"init-declarations": "error",
78+
"jsx-quotes": "error",
79+
"key-spacing": "error",
80+
"keyword-spacing": "off",
81+
"line-comment-position": "error",
82+
"linebreak-style": [
83+
"error",
84+
"unix"
85+
],
86+
"lines-around-comment": "error",
87+
"lines-around-directive": "off",
88+
"max-depth": "error",
89+
"max-len": "off",
90+
"max-lines": "error",
91+
"max-nested-callbacks": "error",
92+
"max-params": "error",
93+
"max-statements": "error",
94+
"max-statements-per-line": "error",
95+
"multiline-ternary": "error",
96+
"new-cap": "error",
97+
"new-parens": "error",
98+
"newline-after-var": "off",
99+
"newline-before-return": "error",
100+
"newline-per-chained-call": "error",
101+
"no-alert": "error",
102+
"no-array-constructor": "error",
103+
"no-bitwise": "error",
104+
"no-caller": "error",
105+
"no-catch-shadow": "error",
106+
"no-confusing-arrow": "error",
107+
"no-console": "off",
108+
"no-continue": "error",
109+
"no-div-regex": "error",
110+
"no-duplicate-imports": "error",
111+
"no-else-return": "error",
112+
"no-empty-function": "error",
113+
"no-eq-null": "error",
114+
"no-eval": "error",
115+
"no-extend-native": "error",
116+
"no-extra-bind": "error",
117+
"no-extra-label": "error",
118+
"no-extra-parens": "error",
119+
"no-floating-decimal": "error",
120+
"no-implicit-coercion": "error",
121+
"no-implicit-globals": "error",
122+
"no-implied-eval": "error",
123+
"no-inline-comments": "error",
124+
"no-invalid-this": "error",
125+
"no-iterator": "error",
126+
"no-label-var": "error",
127+
"no-labels": "error",
128+
"no-lone-blocks": "error",
129+
"no-lonely-if": "error",
130+
"no-loop-func": "error",
131+
"no-magic-numbers": "off",
132+
"no-mixed-operators": "error",
133+
"no-mixed-requires": "error",
134+
"no-multi-spaces": "error",
135+
"no-multi-str": "error",
136+
"no-multiple-empty-lines": "error",
137+
"no-native-reassign": "error",
138+
"no-negated-condition": "error",
139+
"no-negated-in-lhs": "error",
140+
"no-nested-ternary": "error",
141+
"no-new": "error",
142+
"no-new-func": "error",
143+
"no-new-object": "error",
144+
"no-new-require": "error",
145+
"no-new-wrappers": "error",
146+
"no-octal-escape": "error",
147+
"no-param-reassign": "error",
148+
"no-path-concat": "error",
149+
"no-plusplus": "error",
150+
"no-process-env": "off",
151+
"no-process-exit": "off",
152+
"no-proto": "error",
153+
"no-prototype-builtins": "error",
154+
"no-restricted-globals": "error",
155+
"no-restricted-imports": "error",
156+
"no-restricted-modules": "error",
157+
"no-restricted-properties": "error",
158+
"no-restricted-syntax": "error",
159+
"no-return-assign": "error",
160+
"no-return-await": "error",
161+
"no-script-url": "error",
162+
"no-self-compare": "error",
163+
"no-sequences": "error",
164+
"no-shadow": "error",
165+
"no-shadow-restricted-names": "error",
166+
"no-spaced-func": "error",
167+
"no-sync": "off",
168+
"no-tabs": "error",
169+
"no-template-curly-in-string": "error",
170+
"no-ternary": "error",
171+
"no-throw-literal": "error",
172+
"no-trailing-spaces": "error",
173+
"no-undef-init": "error",
174+
"no-undefined": "error",
175+
"no-underscore-dangle": "error",
176+
"no-unmodified-loop-condition": "error",
177+
"no-unneeded-ternary": "error",
178+
"no-unused-expressions": "error",
179+
"no-use-before-define": "error",
180+
"no-useless-call": "error",
181+
"no-useless-computed-key": "error",
182+
"no-useless-concat": "error",
183+
"no-useless-constructor": "error",
184+
"no-useless-escape": "error",
185+
"no-useless-rename": "error",
186+
"no-useless-return": "error",
187+
"no-var": "error",
188+
"no-void": "error",
189+
"no-warning-comments": "error",
190+
"no-whitespace-before-property": "error",
191+
"no-with": "error",
192+
"object-curly-newline": "error",
193+
"object-curly-spacing": "error",
194+
"object-property-newline": "error",
195+
"object-shorthand": "error",
196+
"one-var": "off",
197+
"one-var-declaration-per-line": "error",
198+
"operator-assignment": "error",
199+
"operator-linebreak": "error",
200+
"padded-blocks": "off",
201+
"prefer-arrow-callback": "error",
202+
"prefer-const": "off",
203+
"prefer-numeric-literals": "error",
204+
"prefer-reflect": "error",
205+
"prefer-rest-params": "error",
206+
"prefer-spread": "error",
207+
"prefer-template": "off",
208+
"quote-props": "off",
209+
"quotes": [
210+
"error",
211+
"single"
212+
],
213+
"radix": "error",
214+
"require-jsdoc": "error",
215+
"rest-spread-spacing": "error",
216+
"semi": "off",
217+
"semi-spacing": "error",
218+
"sort-imports": "error",
219+
"sort-keys": "off",
220+
"sort-vars": "error",
221+
"space-before-blocks": "error",
222+
"space-before-function-paren": "error",
223+
"space-in-parens": [
224+
"error",
225+
"never"
226+
],
227+
"space-infix-ops": "error",
228+
"space-unary-ops": "error",
229+
"spaced-comment": "error",
230+
"strict": "off",
231+
"symbol-description": "error",
232+
"template-curly-spacing": [
233+
"error",
234+
"never"
235+
],
236+
"unicode-bom": [
237+
"error",
238+
"never"
239+
],
240+
"valid-jsdoc": "error",
241+
"vars-on-top": "error",
242+
"wrap-iife": "error",
243+
"wrap-regex": "error",
244+
"yield-star-spacing": "error",
245+
"yoda": "error"
246+
}
247+
};

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
.tern-port
21
node_modules

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: node_js
2+
3+
node_js:
4+
- 6
5+
6+
before_install:
7+
# Repo for newer Node.js versions
8+
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
9+
# Repo for Yarn
10+
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
11+
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
12+
- sudo apt-get update -qq
13+
- sudo apt-get install -y -qq yarn
14+
- npm i -g eslint
15+
16+
install:
17+
- yarn install --production
18+
19+
cache:
20+
yarn: true
21+
directories:
22+
- node_modules
23+
24+
notifications:
25+
email: false

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 Oskar Karlsson, Mathieu Santo Stefano--Féron
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)