forked from appsembler/xblock-video
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eslint' into codeclimate
* eslint: remarks correction #18 remarks correction #17 remarks correction #16 remarks correction #15 remarks correction #14 remarks correction #13 remarks correction #12 remarks correction #11 remarks correction #10 remarks correction #9 remarks correction #8 remarks correction #7 remarks correction #6 remarks correction #5 remarks correction #4 remarks correction #3 remarks correction #2 remarks correction #1 Add eslint to TravisCI and .eslintrc.json
- Loading branch information
Showing
12 changed files
with
700 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"extends": "eslint-config-edx", | ||
"globals": { | ||
"videojs": true, | ||
"domReady": true | ||
}, | ||
"rules": { | ||
"no-underscore-dangle": [ | ||
"error", {"allow": [ | ||
// VideoJS components' attributes | ||
"childNameIndex_", "el_", "kind_", "labelEl_", "options_", "player_" | ||
]} | ||
], | ||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true, | ||
"ArrowFunctionExpression": false | ||
} | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
domReady(function(){ | ||
window.videojs = videojs; | ||
var player = videojs('{{ video_player_id }}'); | ||
videojs.plugin('xblockEventPlugin', window.xblockEventPlugin); | ||
player.xblockEventPlugin(); | ||
videojs.plugin('offset', window.vjsoffset); | ||
domReady(function() { | ||
'use strict'; | ||
var player = videojs('{{ video_player_id }}'); | ||
window.videojs = videojs; | ||
videojs.plugin('xblockEventPlugin', window.xblockEventPlugin); | ||
player.xblockEventPlugin(); | ||
videojs.plugin('offset', window.vjsoffset); | ||
|
||
player.offset({ | ||
"start": 0, // do not use quotes for this properties for correct plugin work | ||
"end": 0 | ||
}); | ||
player.offset({ | ||
start: 0, // do not use quotes for this properties for correct plugin work | ||
end: 0 | ||
}); | ||
|
||
videojs.plugin('videoJSSpeedHandler', window.videoJSSpeedHandler); | ||
player.videoJSSpeedHandler(); | ||
videojs.plugin('videoJSSpeedHandler', window.videoJSSpeedHandler); | ||
player.videoJSSpeedHandler(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.