eslint-plugin-better-stylelint 2.0.3 → 2.0.5
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 +6 -0
- package/dist/index.d.ts +6 -6
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -114,3 +114,9 @@ Each `<style>` block in a `.vue` file is linted separately. The bridge:
|
|
|
114
114
|
- maps Stylelint diagnostics back to the original `.vue` line and column
|
|
115
115
|
- includes block context such as `scoped`, `module`, and `lang` in the message
|
|
116
116
|
when that context helps identify the source block
|
|
117
|
+
|
|
118
|
+
## Project links
|
|
119
|
+
|
|
120
|
+
- Documentation: https://repoctl.icebreaker.top
|
|
121
|
+
- Repository: https://github.com/sonofmagic/repoctl/tree/main/packages/eslint-plugin-better-stylelint
|
|
122
|
+
- Issues: https://github.com/sonofmagic/repoctl/issues
|
package/dist/index.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ interface BetterStylelintProcessor {
|
|
|
30
30
|
type BetterStylelintRuleOptions = BetterStylelintOptions;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/processor.d.ts
|
|
33
|
-
declare function createStylelintProcessor(options?: BetterStylelintRuleOptions): BetterStylelintProcessor;
|
|
34
|
-
declare const cssProcessor: BetterStylelintProcessor;
|
|
35
|
-
declare const scssProcessor: BetterStylelintProcessor;
|
|
33
|
+
export declare function createStylelintProcessor(options?: BetterStylelintRuleOptions): BetterStylelintProcessor;
|
|
34
|
+
export declare const cssProcessor: BetterStylelintProcessor;
|
|
35
|
+
export declare const scssProcessor: BetterStylelintProcessor;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/rule.d.ts
|
|
38
38
|
interface RuleContext {
|
|
@@ -55,7 +55,7 @@ interface RuleContext {
|
|
|
55
55
|
text: string;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
declare const lintRule: {
|
|
58
|
+
export declare const lintRule: {
|
|
59
59
|
meta: {
|
|
60
60
|
type: string;
|
|
61
61
|
docs: {
|
|
@@ -86,7 +86,7 @@ declare const lintRule: {
|
|
|
86
86
|
};
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/core.d.ts
|
|
89
|
-
declare function runStylelintSync(code: string, filename: string, options?: BetterStylelintOptions | string): BetterStylelintMessage[];
|
|
89
|
+
export declare function runStylelintSync(code: string, filename: string, options?: BetterStylelintOptions | string): BetterStylelintMessage[];
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/index.d.ts
|
|
92
92
|
interface BetterStylelintPlugin {
|
|
@@ -104,4 +104,4 @@ interface BetterStylelintPlugin {
|
|
|
104
104
|
}
|
|
105
105
|
declare const plugin: BetterStylelintPlugin;
|
|
106
106
|
//#endregion
|
|
107
|
-
export { type BetterStylelintConfig, type BetterStylelintMessage, type BetterStylelintOptions, type BetterStylelintProcessor, type BetterStylelintRuleOptions,
|
|
107
|
+
export { type BetterStylelintConfig, type BetterStylelintMessage, type BetterStylelintOptions, type BetterStylelintProcessor, type BetterStylelintRuleOptions, plugin as default };
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-better-stylelint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.5",
|
|
5
5
|
"description": "Bridge Stylelint diagnostics into ESLint for style files and Vue SFCs",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://repoctl.icebreaker.top",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/sonofmagic/
|
|
11
|
+
"url": "git+https://github.com/sonofmagic/repoctl.git",
|
|
11
12
|
"directory": "packages/eslint-plugin-better-stylelint"
|
|
12
13
|
},
|
|
13
14
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/sonofmagic/
|
|
15
|
+
"url": "https://github.com/sonofmagic/repoctl/issues"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
|
-
"
|
|
18
|
+
"repoctl",
|
|
18
19
|
"eslint",
|
|
19
20
|
"stylelint",
|
|
20
21
|
"eslint-plugin"
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
42
|
-
"stylelint": "^17.
|
|
43
|
+
"stylelint": "^17.15.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependenciesMeta": {
|
|
45
46
|
"stylelint": {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"stylelint": "^17.
|
|
51
|
+
"stylelint": "^17.15.0"
|
|
51
52
|
},
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public",
|