@html-eslint/eslint-plugin 0.22.0 → 0.23.0
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/lib/index.js +24 -3
- package/lib/rules/element-newline.js +10 -3
- package/lib/rules/id-naming-convention.js +8 -1
- package/lib/rules/indent.js +6 -2
- package/lib/rules/lowercase.js +8 -1
- package/lib/rules/no-abstract-roles.js +8 -1
- package/lib/rules/no-accesskey-attrs.js +8 -1
- package/lib/rules/no-aria-hidden-body.js +5 -1
- package/lib/rules/no-duplicate-attrs.js +8 -1
- package/lib/rules/no-duplicate-id.js +8 -1
- package/lib/rules/no-extra-spacing-attrs.js +16 -1
- package/lib/rules/no-inline-styles.js +5 -1
- package/lib/rules/no-multiple-empty-lines.js +6 -1
- package/lib/rules/no-multiple-h1.js +6 -1
- package/lib/rules/no-non-scalable-viewport.js +5 -1
- package/lib/rules/no-obsolete-tags.js +5 -1
- package/lib/rules/no-positive-tabindex.js +8 -1
- package/lib/rules/no-restricted-attr-values.js +6 -1
- package/lib/rules/no-restricted-attrs.js +6 -1
- package/lib/rules/no-script-style-type.js +8 -1
- package/lib/rules/no-skip-heading-levels.js +6 -1
- package/lib/rules/no-target-blank.js +5 -1
- package/lib/rules/no-trailing-spaces.js +5 -1
- package/lib/rules/quotes.js +10 -1
- package/lib/rules/require-attrs.js +8 -1
- package/lib/rules/require-button-type.js +5 -1
- package/lib/rules/require-closing-tags.js +6 -1
- package/lib/rules/require-doctype.js +5 -1
- package/lib/rules/require-frame-title.js +5 -1
- package/lib/rules/require-img-alt.js +6 -1
- package/lib/rules/require-lang.js +5 -1
- package/lib/rules/require-li-container.js +5 -1
- package/lib/rules/require-meta-charset.js +7 -2
- package/lib/rules/require-meta-description.js +6 -2
- package/lib/rules/require-meta-viewport.js +7 -2
- package/lib/rules/require-open-graph-protocol.js +7 -2
- package/lib/rules/require-title.js +9 -3
- package/lib/rules/sort-attrs.js +8 -1
- package/lib/rules/utils/node.js +13 -0
- package/lib/types.d.ts +261 -262
- package/package.json +11 -7
- package/types/index.d.ts +14 -0
- package/types/index.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-eslint/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "ESLint plugin for html",
|
|
5
5
|
"author": "yeonjuan",
|
|
6
6
|
"homepage": "https://github.com/yeonjuan/html-eslint#readme",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
|
+
"types": "types/index.d.ts",
|
|
9
10
|
"directories": {
|
|
10
11
|
"lib": "lib",
|
|
11
|
-
"test": "__tests__"
|
|
12
|
+
"test": "__tests__",
|
|
13
|
+
"types": "types"
|
|
12
14
|
},
|
|
13
15
|
"files": [
|
|
14
|
-
"lib"
|
|
16
|
+
"lib",
|
|
17
|
+
"types"
|
|
15
18
|
],
|
|
16
19
|
"publishConfig": {
|
|
17
20
|
"access": "public"
|
|
@@ -23,7 +26,8 @@
|
|
|
23
26
|
"scripts": {
|
|
24
27
|
"test": "jest --coverage",
|
|
25
28
|
"ts": "tsc",
|
|
26
|
-
"lint": "eslint . --ext .js"
|
|
29
|
+
"lint": "eslint . --ext .js",
|
|
30
|
+
"build": "tsc -p ./tsconfig.build.json"
|
|
27
31
|
},
|
|
28
32
|
"bugs": {
|
|
29
33
|
"url": "https://github.com/yeonjuan/html-eslint/issues"
|
|
@@ -41,11 +45,11 @@
|
|
|
41
45
|
"accessibility"
|
|
42
46
|
],
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@html-eslint/parser": "^0.
|
|
45
|
-
"@types/eslint": "^
|
|
48
|
+
"@html-eslint/parser": "^0.23.0",
|
|
49
|
+
"@types/eslint": "^8.56.2",
|
|
46
50
|
"@types/estree": "^0.0.47",
|
|
47
51
|
"es-html-parser": "^0.0.8",
|
|
48
52
|
"typescript": "^4.4.4"
|
|
49
53
|
},
|
|
50
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "4399086819b9c93546fe3b16493638a84ac362c0"
|
|
51
55
|
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export = plugin;
|
|
2
|
+
/**
|
|
3
|
+
* @type {{configs: {recommended: typeof recommended,"flat/recommended": import("eslint").Linter.FlatConfig , rules: typeof rules}}}
|
|
4
|
+
*/
|
|
5
|
+
declare const plugin: {
|
|
6
|
+
configs: {
|
|
7
|
+
recommended: typeof recommended;
|
|
8
|
+
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
9
|
+
rules: typeof rules;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
import recommended = require("./configs/recommended");
|
|
13
|
+
import rules = require("./rules");
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,sBAFU;IAAC,OAAO,EAAE;QAAC,aAAa,kBAAkB,CAAC;QAAA,kBAAkB,EAAE,OAAO,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAE;QAAC,OAAO,YAAY,CAAA;KAAC,CAAA;CAAC,CAQjI"}
|