Skip to content

Commit

Permalink
Fixes JFusco#3 - Upgraded Test Suite, removed karma, phantomjs, istam…
Browse files Browse the repository at this point in the history
…bul, upgraded babel, added environment to .babelrc to support runtime (is it necessary even?), added jest
  • Loading branch information
Wkasel committed Oct 22, 2019
1 parent a09bcbd commit 930d0d8
Show file tree
Hide file tree
Showing 12 changed files with 11,349 additions and 3,016 deletions.
11 changes: 9 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"plugins": ["transform-runtime"],
"presets": ["es2015", "stage-0"]
"env": {
"development": {
"presets": ["@babel/preset-env"]
},
"test": {
"plugins": ["@babel/plugin-transform-runtime"],
"presets": ["@babel/preset-env"]
}
}
}
158 changes: 88 additions & 70 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,72 +1,90 @@
{
"parser": "babel-eslint",
"rules": {
"comma-dangle": [2, "never"],
"eqeqeq": [2, "allow-null"],
"no-extra-semi": 2,
"no-cond-assign": 2,
"accessor-pairs": 2,
"no-with": 2,
"no-sparse-arrays": 2,
"vars-on-top": 2,
"no-void": 2,
"no-undef": 2,
"no-caller": 2,
"no-new": 2,
"yoda": 2,
"no-inner-declarations": 2,
"no-ex-assign": 2,
"no-else-return": 2,
"no-dupe-keys": 2,
"constructor-super": 2,
"no-extra-boolean-cast": 2,
"no-obj-calls": 2,
"no-empty": 2,
"quotes": [2, "single", "avoid-escape"],
"no-trailing-spaces": 2,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"space-in-parens": [2, "never"],
"object-curly-spacing": [2, "never", {
"objectsInObjects": true,
"arraysInObjects": true
}],
"one-var": [2, {
"let": "always",
"const": "never"
}],
"no-spaced-func": 2,
"spaced-comment": [2, "always", {
"exceptions": ["-"]
}],
"quote-props": [2, "as-needed", {
"keywords": true
}],
"guard-for-in": 2,
"prefer-const": 2,
"no-var": 2,
"prefer-arrow-callback": 2,
"no-const-assign": 2,
"arrow-body-style": [2, "always"],
"arrow-parens": [2, "always"],
"arrow-spacing": [2, {
"before": true,
"after": true
}]
},
"globals": {
"console": true,
"document": true,
"window": true,
"setTimeout": true,
"setInterval": true,
"WeakMap": true,
"jasmine": true,
"spyOn": true,
"describe": true,
"beforeEach": true,
"afterEach": true,
"it": true,
"expect": true
}
"parser": "babel-eslint",
"rules": {
"comma-dangle": [2, "never"],
"eqeqeq": [2, "allow-null"],
"no-extra-semi": 2,
"no-cond-assign": 2,
"accessor-pairs": 2,
"no-with": 2,
"no-sparse-arrays": 2,
"vars-on-top": 2,
"no-void": 2,
"no-undef": 2,
"no-caller": 2,
"no-new": 2,
"yoda": 2,
"no-inner-declarations": 2,
"no-ex-assign": 2,
"no-else-return": 2,
"no-dupe-keys": 2,
"constructor-super": 2,
"no-extra-boolean-cast": 2,
"no-obj-calls": 2,
"no-empty": 2,
"quotes": [2, "single", "avoid-escape"],
"no-trailing-spaces": 2,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"space-in-parens": [2, "never"],
"object-curly-spacing": [
2,
"never",
{
"objectsInObjects": true,
"arraysInObjects": true
}
],
"one-var": [
2,
{
"let": "always",
"const": "never"
}
],
"no-spaced-func": 2,
"spaced-comment": [
2,
"always",
{
"exceptions": ["-"]
}
],
"quote-props": [
2,
"as-needed",
{
"keywords": true
}
],
"guard-for-in": 2,
"prefer-const": 2,
"no-var": 2,
"prefer-arrow-callback": 2,
"no-const-assign": 2,
"arrow-body-style": [2, "always"],
"arrow-parens": [2, "always"],
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
]
},
"globals": {
"console": true,
"document": true,
"window": true,
"setTimeout": true,
"setInterval": true,
"WeakMap": true,
"jasmine": true,
"spyOn": true,
"describe": true,
"beforeEach": true,
"afterEach": true,
"it": true,
"expect": true
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion coverage/reports/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 02:54:48 GMT-0700 (Pacific Daylight Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 03:50:03 GMT-0700 (Pacific Daylight Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/reports/lcov-report/src/emitter.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 02:54:48 GMT-0700 (Pacific Daylight Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 03:50:03 GMT-0700 (Pacific Daylight Time)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/reports/lcov-report/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 02:54:48 GMT-0700 (Pacific Daylight Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 22 2019 03:50:03 GMT-0700 (Pacific Daylight Time)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
Loading

0 comments on commit 930d0d8

Please sign in to comment.