Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
.eslintrcs for everyone! (that needs it)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Jul 30, 2017
1 parent 5a5f1db commit ef6c451
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "profiscience",
"parserOptions": {
"sourceType": "module"
}
}
6 changes: 6 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "profiscience",
"parserOptions": {
"sourceType": "module"
}
}
14 changes: 14 additions & 0 deletions test/_helpers/ko-overwrite-component-registration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import ko from 'knockout'

const _register = ko.components.register

ko.components.register = (name, {
template = '<div></div>',
viewModel = class { }
}) => {
if (ko.components.isRegistered(name)) {
ko.components.unregister(name)
ko.components.clearCachedDefinition(name)
}
return _register(name, { template, viewModel })
}

0 comments on commit ef6c451

Please sign in to comment.