diff --git a/.eslintrc.json b/.eslintrc.json index c8dc1b74..1fc24ce3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,9 +32,7 @@ "message": "Use local parameter instead." } ], - "no-param-reassign": [2, { "props": false }], - "array-bracket-newline": [2, { "minItems": 2 }], - "array-element-newline": [2, { "minItems": 2 }] + "no-param-reassign": [2, { "props": false }] }, "parserOptions": { "sourceType": "module" diff --git a/.prettierrc b/.prettierrc index e1544230..68cc4db2 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,7 +1,7 @@ { "useTabs": false, "tabWidth": 4, - "printWidth": 160, + "printWidth": 120, "singleQuote": true, "trailingComma": "all" } diff --git a/changelog.md b/changelog.md index 1e20d19f..ce4d8d82 100644 --- a/changelog.md +++ b/changelog.md @@ -21,7 +21,7 @@ Again, more changes from @friday! -- Restore window reference in `utils.is.cue()` +- Restore window reference in `is.cue()` - Fix InvalidStateError and IE11 issues - Respect storage being disabled for storage getter diff --git a/controls.md b/controls.md index 86b0cd96..63b17fa3 100644 --- a/controls.md +++ b/controls.md @@ -2,9 +2,9 @@ This is the markup that is rendered for the Plyr controls. You can use the default controls or provide a customized version of markup based on your needs. You can pass the following to the `controls` option: -* `Array` of options (this builds the default controls based on your choices) -* `String` containing the desired HTML -* `Function` that will be executed and should return one of the above +- `Array` of options (this builds the default controls based on your choices) +- `String` containing the desired HTML +- `Function` that will be executed and should return one of the above ## Using default controls @@ -81,14 +81,14 @@ The classes and data attributes used in your template should match the `selector You need to add several placeholders to your HTML template that are replaced when rendering: -* `{id}` - the dynamically generated ID for the player (for form controls) -* `{seektime}` - the seek time specified in options for fast forward and rewind -* `{title}` - the title of your media, if specified +- `{id}` - the dynamically generated ID for the player (for form controls) +- `{seektime}` - the seek time specified in options for fast forward and rewind +- `{title}` - the title of your media, if specified ### Limitations -* Currently the settings menus are not supported with custom controls HTML -* AirPlay and PiP buttons can be added but you will have to manage feature detection +- Currently the settings menus are not supported with custom controls HTML +- AirPlay and PiP buttons can be added but you will have to manage feature detection ### Example @@ -105,7 +105,7 @@ const controls = ` Rewind {seektime} secs - -