@markuplint/config-presets 3.0.0-alpha.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ To the `extends` property of the configuration, specify like below:
|
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
13
|
-
"
|
|
13
|
+
"extends": ["markuplint:recommended"]
|
|
14
14
|
}
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ You can choose some presets appropriately for your preference.
|
|
|
18
18
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
|
-
"
|
|
21
|
+
"extends": ["markuplint:html-standard", "markuplint:a11y"]
|
|
22
22
|
}
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -58,7 +58,7 @@ Require **aspect-ratio**|Require `width` and `height` attr with `<img>` to avoid
|
|
|
58
58
|
Require async decoding image|Require `decoding=async` with `<img>` to avoid render-blocking.|✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|
|
|
59
59
|
Require loading `<iframe>` lazily|Require `loading=lazy` with `<iframe>` to avoid render-blocking that causes loading if its element is out of the viewport.|✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|
|
|
60
60
|
Allow `property` attr with `<meta>`|Be able to use **Open-Graph** etc.|✅|✅|✅|✅|✅|❌|❌|❌|❌|✅|❌|
|
|
61
|
-
No hard coding **ID**|The component that hard-coded ID cannot mount to an app
|
|
61
|
+
No hard coding **ID**|The component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document. Recommend to specify dynamic IDs to avoid doing that.|❌|✅|✅|❌|✅|❌|❌|❌|❌|❌|❌|
|
|
62
62
|
No omit **end-tag**|Recommend to write an end-tag always because it is too difficult for a human decide an element is end-tag omittable.|❌|❌|❌|✅|❌|❌|❌|❌|❌|❌|❌|
|
|
63
63
|
Require `noreferrer` with `target=_blank`|Require `rel=noreferrer` with an element that has `target=_blank` to prevent leaking referrer information and to block operating referrer documents.|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|✅|
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/config-presets",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "markuplint config presets",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"glob": "^8.0.3",
|
|
17
|
-
"jsonc-parser": "^3.
|
|
17
|
+
"jsonc-parser": "^3.2.0",
|
|
18
18
|
"mustache": "^4.2.0"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "830bf8187b81bf5ca2f5f09b6f85a98395a58bdb"
|
|
21
21
|
}
|
package/src/README.md
CHANGED
|
@@ -10,7 +10,7 @@ To the `extends` property of the configuration, specify like below:
|
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
13
|
-
"
|
|
13
|
+
"extends": ["markuplint:recommended"]
|
|
14
14
|
}
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ You can choose some presets appropriately for your preference.
|
|
|
18
18
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
|
-
"
|
|
21
|
+
"extends": ["markuplint:html-standard", "markuplint:a11y"]
|
|
22
22
|
}
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* No hard coding **ID**
|
|
13
13
|
*
|
|
14
|
-
* The component that hard-coded ID cannot mount to an app
|
|
14
|
+
* The component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document.
|
|
15
15
|
* Recommend to specify dynamic IDs to avoid doing that.
|
|
16
16
|
*/
|
|
17
17
|
"no-hard-code-id": true
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* No hard coding **ID**
|
|
13
13
|
*
|
|
14
|
-
* The component that hard-coded ID cannot mount to an app
|
|
14
|
+
* The component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document.
|
|
15
15
|
* Recommend to specify dynamic IDs to avoid doing that.
|
|
16
16
|
*/
|
|
17
17
|
"no-hard-code-id": true
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* No hard coding **ID**
|
|
13
13
|
*
|
|
14
|
-
* The component that hard-coded ID cannot mount to an app
|
|
14
|
+
* The component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document.
|
|
15
15
|
* Recommend to specify dynamic IDs to avoid doing that.
|
|
16
16
|
*/
|
|
17
17
|
"no-hard-code-id": true
|