@byscripts/eslint-plugin 0.4.0 → 0.5.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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Rule } from "eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/vue-block-attribute-order.d.ts
|
|
4
|
+
declare const _default: {
|
|
5
|
+
meta: {
|
|
6
|
+
type: "layout";
|
|
7
|
+
fixable: "code";
|
|
8
|
+
schema: {
|
|
9
|
+
type: "object";
|
|
10
|
+
additionalProperties: {
|
|
11
|
+
type: "array";
|
|
12
|
+
items: {
|
|
13
|
+
type: "string";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}[];
|
|
17
|
+
messages: {
|
|
18
|
+
wrongOrder: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
create(context: Rule.RuleContext): {
|
|
22
|
+
Program?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
Program(): void;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//#region src/block-attribute-order.ts
|
|
2
1
|
const DEFAULT_ORDER = {
|
|
3
2
|
script: ["lang", "setup"],
|
|
4
3
|
style: ["lang", "scoped"]
|
|
5
4
|
};
|
|
6
|
-
|
|
5
|
+
var vue_block_attribute_order_default = {
|
|
7
6
|
meta: {
|
|
8
7
|
type: "layout",
|
|
9
8
|
fixable: "code",
|
|
@@ -57,10 +56,4 @@ const blockAttributeOrder = {
|
|
|
57
56
|
} };
|
|
58
57
|
}
|
|
59
58
|
};
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/index.ts
|
|
63
|
-
var src_default = { blockAttributeOrder };
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
export { src_default as default };
|
|
59
|
+
export { vue_block_attribute_order_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byscripts/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/ByScripts/toolbox"
|
|
6
6
|
},
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
|
-
"
|
|
13
|
-
"types": "./dist/
|
|
14
|
-
"default": "./dist/
|
|
12
|
+
"./vue-block-attribute-order": {
|
|
13
|
+
"types": "./dist/vue-block-attribute-order.d.mts",
|
|
14
|
+
"default": "./dist/vue-block-attribute-order.mjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@tsconfig/node22": "^22.0.5",
|
|
19
|
-
"
|
|
19
|
+
"obuild": "^0.4.31"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"eslint": "^9.22.0"
|
|
22
|
+
"eslint": "^9.22.0 || ^10.0.0"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "
|
|
26
|
+
"build": "obuild"
|
|
27
27
|
}
|
|
28
28
|
}
|