Skip to content

Commit 9e1fab7

Browse files
committed
[ec36-avoid-autoplay] fix : eslint
1 parent b95b6e9 commit 9e1fab7

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

eslint-plugin/README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,19 @@ Add `@ecocode` to the `plugins` section of your `.eslintrc`, followed by rules c
6767
⚠️ Configurations set to warn in.\
6868
✅ Set in the `recommended` configuration.
6969

70-
| Name | Description | ⚠️ |
71-
| :------------------------------------------------------------------------------------- | :--------------------------------------------------------- | :- |
72-
| [avoid-css-animations](docs/rules/avoid-css-animations.md) | Avoid usage of CSS animations ||
73-
| [avoid-high-accuracy-geolocation](docs/rules/avoid-high-accuracy-geolocation.md) | Avoid using high accuracy geolocation in web applications. ||
74-
| [limit-db-query-results](docs/rules/limit-db-query-results.md) | Should limit the number of returns for a SQL query ||
75-
| [no-empty-image-src-attribute](docs/rules/no-empty-image-src-attribute.md) | Disallow usage of image with empty source attribute ||
76-
| [no-import-all-from-library](docs/rules/no-import-all-from-library.md) | Should not import all from library ||
77-
| [no-multiple-access-dom-element](docs/rules/no-multiple-access-dom-element.md) | Disallow multiple access of same DOM element. ||
78-
| [no-multiple-style-changes](docs/rules/no-multiple-style-changes.md) | Disallow multiple style changes at once. ||
79-
| [prefer-collections-with-pagination](docs/rules/prefer-collections-with-pagination.md) | Prefer API collections with pagination. ||
80-
| [prefer-shorthand-css-notations](docs/rules/prefer-shorthand-css-notations.md) | Encourage usage of shorthand CSS notations ||
81-
| [provide-print-css](docs/rules/provide-print-css.md) | Enforce providing a print stylesheet ||
70+
| Name                               | Description | ⚠️ |
71+
| :------------------------------------------------------------------------------------- | :------------------------------------------------------------------------ | :- |
72+
| [avoid-autoplay](docs/rules/avoid-autoplay.md) | Disallow autoplay and enforce preload='none' for video and audio elements ||
73+
| [avoid-css-animations](docs/rules/avoid-css-animations.md) | Avoid usage of CSS animations ||
74+
| [avoid-high-accuracy-geolocation](docs/rules/avoid-high-accuracy-geolocation.md) | Avoid using high accuracy geolocation in web applications. ||
75+
| [limit-db-query-results](docs/rules/limit-db-query-results.md) | Should limit the number of returns for a SQL query ||
76+
| [no-empty-image-src-attribute](docs/rules/no-empty-image-src-attribute.md) | Disallow usage of image with empty source attribute ||
77+
| [no-import-all-from-library](docs/rules/no-import-all-from-library.md) | Should not import all from library ||
78+
| [no-multiple-access-dom-element](docs/rules/no-multiple-access-dom-element.md) | Disallow multiple access of same DOM element. ||
79+
| [no-multiple-style-changes](docs/rules/no-multiple-style-changes.md) | Disallow multiple style changes at once. ||
80+
| [prefer-collections-with-pagination](docs/rules/prefer-collections-with-pagination.md) | Prefer API collections with pagination. ||
81+
| [prefer-shorthand-css-notations](docs/rules/prefer-shorthand-css-notations.md) | Encourage usage of shorthand CSS notations ||
82+
| [provide-print-css](docs/rules/provide-print-css.md) | Enforce providing a print stylesheet ||
8283

8384
<!-- end auto-generated rules list -->
8485

eslint-plugin/docs/rules/avoid-autoplay.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Disallow usage of image with empty source attribute (`@ecocode/no-empty-image-src-attribute`)
1+
# Disallow autoplay and enforce preload='none' for video and audio elements (`@ecocode/avoid-autoplay`)
2+
3+
⚠️ This rule _warns_ in the ✅ `recommended` config.
4+
5+
<!-- end auto-generated rule header -->
26

37
⚠️ This rule _warns_ in the ✅ `recommended` config.
48

0 commit comments

Comments
 (0)