diff --git a/.eslintrc.json b/.eslintrc.json index c0ea7ff9..89426cd5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,7 +30,9 @@ "name": "error", "message": "Use local parameter instead." } - ] + ], + "array-bracket-newline": [2, { "minItems": 2 }], + "array-element-newline": [2, { "minItems": 2 }] }, "parserOptions": { "sourceType": "module" diff --git a/.stylelintrc.json b/.stylelintrc.json index dc24e607..728265e3 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,7 +1,24 @@ { - "extends": ["stylelint-config-standard", "stylelint-config-prettier"], + "plugins": ["stylelint-selector-bem-pattern", "stylelint-scss"], + "extends": ["stylelint-config-sass-guidelines", "stylelint-config-prettier"], "rules": { + "selector-class-pattern": null, + "selector-no-qualifying-type": [ + true, + { + "ignore": ["attribute", "class"] + } + ], "indentation": 4, - "string-quotes": "single" + "string-quotes": "single", + "max-nesting-depth": 2, + "plugin/selector-bem-pattern": { + "preset": "bem", + "componentName": "(([a-z0-9]+(?!-$)-?)+)", + "componentSelectors": { + "initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$" + }, + "ignoreSelectors": [".*\\.has-.*", ".*\\.is-.*"] + } } } diff --git a/bundles.json b/bundles.json index 726ecbbd..bdfa2c8d 100644 --- a/bundles.json +++ b/bundles.json @@ -1,19 +1,16 @@ { "plyr": { - "less": { - "plyr.css": "src/less/bundle.less" - }, "sass": { - "plyr.css": "src/scss/plyr.scss" + "plyr.css": "src/sass/plyr.scss" }, "js": { "plyr.js": "src/js/plyr.js" } }, "demo": { - "less": { - "demo.css": "demo/src/less/bundles/demo.less", - "error.css": "demo/src/less/bundles/error.less" + "sass": { + "demo.css": "demo/src/sass/bundles/demo.scss", + "error.css": "demo/src/sass/bundles/error.csss" }, "js": { "demo.js": "demo/src/js/demo.js" diff --git a/changelog.md b/changelog.md index 46547433..bef48386 100644 --- a/changelog.md +++ b/changelog.md @@ -1,530 +1,646 @@ # Changelog ## v2.0.12 -- Ability to set custom `blankUrl` for source changes (https://github.com/sampotts/plyr/pull/504) -- Ability to set caption button listener (https://github.com/sampotts/plyr/pull/468) + +* Ability to set custom `blankUrl` for source changes (https://github.com/sampotts/plyr/pull/504) +* Ability to set caption button listener (https://github.com/sampotts/plyr/pull/468) ## v2.0.11 -- Fix for `cleanUp` being called twice (thanks to @sebastiancarlsson) -- Fix for YouTube controls on iPad (fixes #391) + +* Fix for `cleanUp` being called twice (thanks to @sebastiancarlsson) +* Fix for YouTube controls on iPad (fixes #391) ## v2.0.10 -- Added seek event fixes for Vimeo and YouTube (fixes #409) -- Added support for embed URLs rather than ID only (fixes #345) + +* Added seek event fixes for Vimeo and YouTube (fixes #409) +* Added support for embed URLs rather than ID only (fixes #345) ## v2.0.9 -- Temporary patch for the YouTube API issues with `getDuration()` (relates to #374) + +* Temporary patch for the YouTube API issues with `getDuration()` (relates to #374) ## v2.0.8 -- Added `isPaused()` API method (thanks to @darrena092) -- Allowed `.on()` API method to be chainable (thanks to @gurupras) (fixes #357) -- Improved the "awful" rendering of captions on small screens in fullscreen mode (fixes #390) -- Fix for Firefox VTT compatibility (thanks to @magourex) -- Fix for Firefox Developer Edition blank video due to `-webkit-mask-image` issue (fixes #392) -- Added Issue and PR templates with the aim of reducing duplicate or duff issues + +* Added `isPaused()` API method (thanks to @darrena092) +* Allowed `.on()` API method to be chainable (thanks to @gurupras) (fixes #357) +* Improved the "awful" rendering of captions on small screens in fullscreen mode (fixes #390) +* Fix for Firefox VTT compatibility (thanks to @magourex) +* Fix for Firefox Developer Edition blank video due to `-webkit-mask-image` issue (fixes #392) +* Added Issue and PR templates with the aim of reducing duplicate or duff issues ## v2.0.7 -- Fixed `getCurrentTime()` method (fixes #351) -- Added `getVolume()` , `isMuted()` and `getDuration()` API methods (fixes #346) + +* Fixed `getCurrentTime()` method (fixes #351) +* Added `getVolume()` , `isMuted()` and `getDuration()` API methods (fixes #346) ## v2.0.6 -- Fixed merge issue with `Updated define to work with AMD imports #326` PR -- Code formatting + +* Fixed merge issue with `Updated define to work with AMD imports #326` PR +* Code formatting ## v2.0.5 -- Fix for Vimeo in IE9 & IE10 -- Fix for HTML5 elements not firing `ready` event + +* Fix for Vimeo in IE9 & IE10 +* Fix for HTML5 elements not firing `ready` event ## v2.0.4 -- Fix for Firefox full screen (fixes #343) + +* Fix for Firefox full screen (fixes #343) ## v2.0.3 -- Set 'global' keyboard shortcut option to false as default, added `