@html-eslint/eslint-plugin 0.46.0 → 0.46.1
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 +13 -1
- package/package.json +2 -2
- package/types/index.d.ts +14 -0
- package/types/index.d.ts.map +1 -1
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const {
|
|
|
5
5
|
} = require("./configs/recommended");
|
|
6
6
|
const { HTMLLanguage } = require("./languages/html-language");
|
|
7
7
|
const { name, version } = require("../package.json");
|
|
8
|
-
|
|
8
|
+
const parser = require("@html-eslint/parser");
|
|
9
9
|
/**
|
|
10
10
|
* @import { ESLint } from "eslint";
|
|
11
11
|
*/
|
|
@@ -30,6 +30,18 @@ const plugin = {
|
|
|
30
30
|
["recommended-legacy"]: {
|
|
31
31
|
rules: recommendedLegacyRules,
|
|
32
32
|
},
|
|
33
|
+
"flat/recommended": {
|
|
34
|
+
plugins: {
|
|
35
|
+
/** @type {ESLint.Plugin} */
|
|
36
|
+
get "@html-eslint"() {
|
|
37
|
+
return plugin;
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
languageOptions: {
|
|
41
|
+
parser,
|
|
42
|
+
},
|
|
43
|
+
rules: recommendedLegacyRules,
|
|
44
|
+
},
|
|
33
45
|
},
|
|
34
46
|
};
|
|
35
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-eslint/eslint-plugin",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "ESLint plugin for HTML",
|
|
6
6
|
"author": "yeonjuan",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "30d2b2e4c8b4b69fade92dbe37cb2a178500207c"
|
|
63
63
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { name } from "../package.json";
|
|
|
2
2
|
import { version } from "../package.json";
|
|
3
3
|
import { HTMLLanguage } from "./languages/html-language";
|
|
4
4
|
import rules = require("./rules");
|
|
5
|
+
import type { ESLint } from "eslint";
|
|
6
|
+
import parser = require("@html-eslint/parser");
|
|
5
7
|
export declare namespace meta {
|
|
6
8
|
export { name };
|
|
7
9
|
export { version };
|
|
@@ -40,5 +42,17 @@ export declare let configs: {
|
|
|
40
42
|
inline: string[];
|
|
41
43
|
}]>;
|
|
42
44
|
};
|
|
45
|
+
"flat/recommended": {
|
|
46
|
+
plugins: {
|
|
47
|
+
/** @type {ESLint.Plugin} */
|
|
48
|
+
readonly "@html-eslint": ESLint.Plugin;
|
|
49
|
+
};
|
|
50
|
+
languageOptions: {
|
|
51
|
+
parser: typeof parser;
|
|
52
|
+
};
|
|
53
|
+
rules: Record<string, "error" | ["error", {
|
|
54
|
+
inline: string[];
|
|
55
|
+
}]>;
|
|
56
|
+
};
|
|
43
57
|
};
|
|
44
58
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";;;;4BAS2B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyB3B,4BAA4B;qCAAjB,aAAa"}
|