Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 4d1a2f9

Browse files
authored
Merge pull request #30 from montogeek/feature/upgrade_to_es6
Upgrade to es6
2 parents 79a02a6 + b1fd1e3 commit 4d1a2f9

File tree

7 files changed

+469
-223
lines changed

7 files changed

+469
-223
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[*]
2+
end_of_line = lf
3+
indent_style = tab
4+
insert_final_newline = true
5+
max_line_length = 80
6+
trim_trailing_whitespace = true
7+
8+
[{./package.json}]
9+
indent_style = space
10+
indent_size = 2

.eslintrc.json

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

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22
node_js:
3-
- "0.10"
4-
- "0.12"
5-
- "iojs"
3+
- "4"
4+
- "6"
5+
- "7"
66
script: npm run travis
77

88
before_install:

0 commit comments

Comments
 (0)