@powerlines/plugin-stylelint 0.1.256 → 0.1.258
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/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/index.cjs +2 -30
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +52 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +52 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +0 -2
- package/package.json +6 -6
- package/dist/index-BgAdqTbb.d.mts +0 -1
- package/dist/index-CEgs-Dz2.d.cts +0 -1
- package/dist/plugin-C3MaN5jp.mjs +0 -1
- package/dist/plugin-Clc3nCZf.d.mts +0 -52
- package/dist/plugin-Clc3nCZf.d.mts.map +0 -1
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-mz0KgUoB.d.cts +0 -52
- package/dist/plugin-mz0KgUoB.d.cts.map +0 -1
- package/dist/types-CTUnla4x.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/dist/index.cjs
CHANGED
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
-
__defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
-
value: mod,
|
|
25
|
-
enumerable: true
|
|
26
|
-
}) : target, mod));
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
require('./plugin-DHXHjv16.cjs');
|
|
30
|
-
require('./types-DHkg7xmX.cjs');
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
31
3
|
let __stryke_fs_get_parent_path = require("@stryke/fs/get-parent-path");
|
|
32
4
|
let __stryke_path_append = require("@stryke/path/append");
|
|
33
5
|
let __stryke_path_join = require("@stryke/path/join");
|
|
34
6
|
let defu = require("defu");
|
|
35
7
|
let stylelint = require("stylelint");
|
|
36
|
-
stylelint = __toESM(stylelint);
|
|
8
|
+
stylelint = require_rolldown_runtime.__toESM(stylelint);
|
|
37
9
|
|
|
38
10
|
//#region src/index.ts
|
|
39
11
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index
|
|
1
|
+
import { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
+
import "./types/index.cjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index
|
|
1
|
+
import { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
+
import "./types/index.mjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getParentPath } from \"@stryke/fs/get-parent-path\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { defu } from \"defu\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport stylelint from \"stylelint\";\nimport { StylelintPluginContext, StylelintPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in linting stylesheets with Stylelint.\n */\nexport function plugin(\n options: StylelintPluginOptions = {}\n): Plugin<StylelintPluginContext> {\n return {\n name: \"stylelint\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `stylelint` build plugin.\"\n );\n\n const configFile = getParentPath(\n [\n \"stylelint.config.js\",\n \"stylelint.config.mjs\",\n \"stylelint.config.cjs\",\n \"stylelint.config.ts\",\n \"stylelint.config.mts\",\n \"stylelint.config.cts\",\n \".stylelintrc.js\",\n \".stylelintrc.cjs\",\n \".stylelintrc.yaml\",\n \".stylelintrc.yml\",\n \".stylelintrc.json\",\n \".stylelintrc\"\n ],\n this.config.projectRoot,\n {\n ignoreCase: true,\n skipCwd: false,\n includeNameInResults: true\n }\n );\n\n return {\n lint: {\n stylelint: defu(options, {\n configFile,\n cwd: joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n ),\n silent: this.config.logLevel !== null,\n fix: true\n })\n }\n };\n },\n async lint() {\n this.debug(`Linting project files with Stylelint.`);\n\n const result = await stylelint.lint(options);\n\n if (this.config.lint.stylelint.outputFile) {\n await this.fs.write(\n appendPath(\n this.config.lint.stylelint.outputFile,\n this.config.projectRoot\n ),\n result.report\n );\n }\n\n if (!this.config.lint.stylelint.silent) {\n this.info(result.report);\n\n const totalWarnings = result.results\n .map(res => res.warnings.filter(warn => warn.severity === \"warning\"))\n .reduce((prev, res) => prev + res.length, 0);\n if (totalWarnings > 0) {\n this.warn(\n `${totalWarnings} Stylelint linting warnings found in the listed files.`\n );\n } else if (result.errored) {\n this.error(\"Stylelint linting errors found in the listed files.\");\n } else {\n this.info(\"All files pass Stylelint linting.\");\n }\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getParentPath } from \"@stryke/fs/get-parent-path\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { defu } from \"defu\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport stylelint from \"stylelint\";\nimport { StylelintPluginContext, StylelintPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in linting stylesheets with Stylelint.\n */\nexport function plugin(\n options: StylelintPluginOptions = {}\n): Plugin<StylelintPluginContext> {\n return {\n name: \"stylelint\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `stylelint` build plugin.\"\n );\n\n const configFile = getParentPath(\n [\n \"stylelint.config.js\",\n \"stylelint.config.mjs\",\n \"stylelint.config.cjs\",\n \"stylelint.config.ts\",\n \"stylelint.config.mts\",\n \"stylelint.config.cts\",\n \".stylelintrc.js\",\n \".stylelintrc.cjs\",\n \".stylelintrc.yaml\",\n \".stylelintrc.yml\",\n \".stylelintrc.json\",\n \".stylelintrc\"\n ],\n this.config.projectRoot,\n {\n ignoreCase: true,\n skipCwd: false,\n includeNameInResults: true\n }\n );\n\n return {\n lint: {\n stylelint: defu(options, {\n configFile,\n cwd: joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n ),\n silent: this.config.logLevel !== null,\n fix: true\n })\n }\n };\n },\n async lint() {\n this.debug(`Linting project files with Stylelint.`);\n\n const result = await stylelint.lint(options);\n\n if (this.config.lint.stylelint.outputFile) {\n await this.fs.write(\n appendPath(\n this.config.lint.stylelint.outputFile,\n this.config.projectRoot\n ),\n result.report\n );\n }\n\n if (!this.config.lint.stylelint.silent) {\n this.info(result.report);\n\n const totalWarnings = result.results\n .map(res => res.warnings.filter(warn => warn.severity === \"warning\"))\n .reduce((prev, res) => prev + res.length, 0);\n if (totalWarnings > 0) {\n this.warn(\n `${totalWarnings} Stylelint linting warnings found in the listed files.`\n );\n } else if (result.errored) {\n this.error(\"Stylelint linting errors found in the listed files.\");\n } else {\n this.info(\"All files pass Stylelint linting.\");\n }\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AA+BA,SAAgB,OACd,UAAkC,EAAE,EACJ;AAChC,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,QAAK,MACH,+EACD;AAyBD,UAAO,EACL,MAAM,EACJ,WAAW,KAAK,SAAS;IACvB,YA1Ba,cACjB;KACE;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD,EACD,KAAK,OAAO,aACZ;KACE,YAAY;KACZ,SAAS;KACT,sBAAsB;KACvB,CACF;IAMK,KAAK,UACH,KAAK,gBAAgB,eACrB,KAAK,OAAO,YACb;IACD,QAAQ,KAAK,OAAO,aAAa;IACjC,KAAK;IACN,CAAC,EACH,EACF;;EAEH,MAAM,OAAO;AACX,QAAK,MAAM,wCAAwC;GAEnD,MAAM,SAAS,MAAM,UAAU,KAAK,QAAQ;AAE5C,OAAI,KAAK,OAAO,KAAK,UAAU,WAC7B,OAAM,KAAK,GAAG,MACZ,WACE,KAAK,OAAO,KAAK,UAAU,YAC3B,KAAK,OAAO,YACb,EACD,OAAO,OACR;AAGH,OAAI,CAAC,KAAK,OAAO,KAAK,UAAU,QAAQ;AACtC,SAAK,KAAK,OAAO,OAAO;IAExB,MAAM,gBAAgB,OAAO,QAC1B,KAAI,QAAO,IAAI,SAAS,QAAO,SAAQ,KAAK,aAAa,UAAU,CAAC,CACpE,QAAQ,MAAM,QAAQ,OAAO,IAAI,QAAQ,EAAE;AAC9C,QAAI,gBAAgB,EAClB,MAAK,KACH,GAAG,cAAc,wDAClB;aACQ,OAAO,QAChB,MAAK,MAAM,sDAAsD;QAEjE,MAAK,KAAK,oCAAoC;;;EAIrD;;AAGH,kBAAe"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-CEgs-Dz2.cjs";
|
|
1
|
+
import { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig } from "./plugin.cjs";
|
|
3
2
|
export { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-BgAdqTbb.mjs";
|
|
1
|
+
import { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig } from "./plugin.mjs";
|
|
3
2
|
export { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../plugin-DHXHjv16.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UserConfig } from "powerlines/types/config";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
import { FixMode, LinterOptions } from "stylelint";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
interface StylelintPluginOptions extends Partial<LinterOptions> {
|
|
8
|
+
/**
|
|
9
|
+
* The path to the Stylelint configuration file.
|
|
10
|
+
*/
|
|
11
|
+
configFile?: string;
|
|
12
|
+
/**
|
|
13
|
+
* An optional path to output the linting results to.
|
|
14
|
+
*/
|
|
15
|
+
outputFile?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to suppress output to the console.
|
|
18
|
+
*
|
|
19
|
+
* @defaultValue false
|
|
20
|
+
*/
|
|
21
|
+
silent?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to automatically fix problems
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue true
|
|
26
|
+
*/
|
|
27
|
+
fix?: boolean | FixMode;
|
|
28
|
+
}
|
|
29
|
+
interface StylelintPluginUserConfig extends UserConfig {
|
|
30
|
+
/**
|
|
31
|
+
* Options for the Stylelint plugin.
|
|
32
|
+
*/
|
|
33
|
+
lint?: {
|
|
34
|
+
stylelint?: StylelintPluginOptions;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
interface StylelintPluginResolvedConfig extends ResolvedConfig {
|
|
38
|
+
/**
|
|
39
|
+
* Options for the Stylelint plugin.
|
|
40
|
+
*/
|
|
41
|
+
lint: {
|
|
42
|
+
stylelint: StylelintPluginOptions;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
type StylelintPluginContext<TResolvedConfig extends StylelintPluginResolvedConfig = StylelintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
46
|
+
declare type __ΩStylelintPluginOptions = any[];
|
|
47
|
+
declare type __ΩStylelintPluginUserConfig = any[];
|
|
48
|
+
declare type __ΩStylelintPluginResolvedConfig = any[];
|
|
49
|
+
declare type __ΩStylelintPluginContext = any[];
|
|
50
|
+
//#endregion
|
|
51
|
+
export { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig };
|
|
52
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,sBAAA,SAA+B,QAAQ;;AAAxD;;EAuBkB,UAAA,CAAA,EAAA,MAAA;EAvB8B;;AA0BhD;EASiB,UAAA,CAAA,EAAA,MAAA;EASL;;;;;EAGK,MAAA,CAAA,EAAA,OAAA;;;;;;kBAxBC;;UAGD,yBAAA,SAAkC;;;;;gBAKnC;;;UAIC,6BAAA,SAAsC;;;;;eAKxC;;;KAIH,+CAER,gCAAgC,iCAChC,cAAc"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FixMode, LinterOptions } from "stylelint";
|
|
2
|
+
import { UserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
interface StylelintPluginOptions extends Partial<LinterOptions> {
|
|
8
|
+
/**
|
|
9
|
+
* The path to the Stylelint configuration file.
|
|
10
|
+
*/
|
|
11
|
+
configFile?: string;
|
|
12
|
+
/**
|
|
13
|
+
* An optional path to output the linting results to.
|
|
14
|
+
*/
|
|
15
|
+
outputFile?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to suppress output to the console.
|
|
18
|
+
*
|
|
19
|
+
* @defaultValue false
|
|
20
|
+
*/
|
|
21
|
+
silent?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to automatically fix problems
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue true
|
|
26
|
+
*/
|
|
27
|
+
fix?: boolean | FixMode;
|
|
28
|
+
}
|
|
29
|
+
interface StylelintPluginUserConfig extends UserConfig {
|
|
30
|
+
/**
|
|
31
|
+
* Options for the Stylelint plugin.
|
|
32
|
+
*/
|
|
33
|
+
lint?: {
|
|
34
|
+
stylelint?: StylelintPluginOptions;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
interface StylelintPluginResolvedConfig extends ResolvedConfig {
|
|
38
|
+
/**
|
|
39
|
+
* Options for the Stylelint plugin.
|
|
40
|
+
*/
|
|
41
|
+
lint: {
|
|
42
|
+
stylelint: StylelintPluginOptions;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
type StylelintPluginContext<TResolvedConfig extends StylelintPluginResolvedConfig = StylelintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
46
|
+
declare type __ΩStylelintPluginOptions = any[];
|
|
47
|
+
declare type __ΩStylelintPluginUserConfig = any[];
|
|
48
|
+
declare type __ΩStylelintPluginResolvedConfig = any[];
|
|
49
|
+
declare type __ΩStylelintPluginContext = any[];
|
|
50
|
+
//#endregion
|
|
51
|
+
export { StylelintPluginContext, StylelintPluginOptions, StylelintPluginResolvedConfig, StylelintPluginUserConfig, __ΩStylelintPluginContext, __ΩStylelintPluginOptions, __ΩStylelintPluginResolvedConfig, __ΩStylelintPluginUserConfig };
|
|
52
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,sBAAA,SAA+B,QAAQ;;AAAxD;;EAuBkB,UAAA,CAAA,EAAA,MAAA;EAvB8B;;AA0BhD;EASiB,UAAA,CAAA,EAAA,MAAA;EASL;;;;;EAGK,MAAA,CAAA,EAAA,OAAA;;;;;;kBAxBC;;UAGD,yBAAA,SAAkC;;;;;gBAKnC;;;UAIC,6BAAA,SAAsC;;;;;eAKxC;;;KAIH,+CAER,gCAAgC,iCAChC,cAAc"}
|
package/dist/types/plugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-stylelint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.258",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Stylelint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -92,19 +92,19 @@
|
|
|
92
92
|
],
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@storm-software/config-tools": "^1.189.0",
|
|
95
|
-
"@stryke/fs": "^0.33.
|
|
96
|
-
"@stryke/path": "^0.26.
|
|
95
|
+
"@stryke/fs": "^0.33.40",
|
|
96
|
+
"@stryke/path": "^0.26.4",
|
|
97
97
|
"defu": "^6.1.4",
|
|
98
|
-
"powerlines": "^0.38.
|
|
98
|
+
"powerlines": "^0.38.21",
|
|
99
99
|
"stylelint": "^16.26.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
102
|
+
"@powerlines/plugin-plugin": "^0.12.205",
|
|
103
103
|
"@types/node": "^24.10.9"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": { "access": "public" },
|
|
106
106
|
"main": "./dist/index.cjs",
|
|
107
107
|
"module": "./dist/index.mjs",
|
|
108
108
|
"types": "./dist/index.d.cts",
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "6000a15bf3fbc1b7eaaf967088c68eef9949786a"
|
|
110
110
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-C3MaN5jp.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { FixMode, LinterOptions } from "stylelint";
|
|
2
|
-
import { UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
interface StylelintPluginOptions extends Partial<LinterOptions> {
|
|
8
|
-
/**
|
|
9
|
-
* The path to the Stylelint configuration file.
|
|
10
|
-
*/
|
|
11
|
-
configFile?: string;
|
|
12
|
-
/**
|
|
13
|
-
* An optional path to output the linting results to.
|
|
14
|
-
*/
|
|
15
|
-
outputFile?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to suppress output to the console.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue false
|
|
20
|
-
*/
|
|
21
|
-
silent?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to automatically fix problems
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue true
|
|
26
|
-
*/
|
|
27
|
-
fix?: boolean | FixMode;
|
|
28
|
-
}
|
|
29
|
-
interface StylelintPluginUserConfig extends UserConfig {
|
|
30
|
-
/**
|
|
31
|
-
* Options for the Stylelint plugin.
|
|
32
|
-
*/
|
|
33
|
-
lint?: {
|
|
34
|
-
stylelint?: StylelintPluginOptions;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
interface StylelintPluginResolvedConfig extends ResolvedConfig {
|
|
38
|
-
/**
|
|
39
|
-
* Options for the Stylelint plugin.
|
|
40
|
-
*/
|
|
41
|
-
lint: {
|
|
42
|
-
stylelint: StylelintPluginOptions;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
type StylelintPluginContext<TResolvedConfig extends StylelintPluginResolvedConfig = StylelintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
46
|
-
declare type __ΩStylelintPluginOptions = any[];
|
|
47
|
-
declare type __ΩStylelintPluginUserConfig = any[];
|
|
48
|
-
declare type __ΩStylelintPluginResolvedConfig = any[];
|
|
49
|
-
declare type __ΩStylelintPluginContext = any[];
|
|
50
|
-
//#endregion
|
|
51
|
-
export { __ΩStylelintPluginContext as a, __ΩStylelintPluginUserConfig as c, StylelintPluginUserConfig as i, StylelintPluginOptions as n, __ΩStylelintPluginOptions as o, StylelintPluginResolvedConfig as r, __ΩStylelintPluginResolvedConfig as s, StylelintPluginContext as t };
|
|
52
|
-
//# sourceMappingURL=plugin-Clc3nCZf.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-Clc3nCZf.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,sBAAA,SAA+B,QAAQ;;AAAxD;;EAuBkB,UAAA,CAAA,EAAA,MAAA;EAvB8B;;AA0BhD;EASiB,UAAA,CAAA,EAAA,MAAA;EASL;;;;;EAGK,MAAA,CAAA,EAAA,OAAA;;;;;;kBAxBC;;UAGD,yBAAA,SAAkC;;;;;gBAKnC;;;UAIC,6BAAA,SAAsC;;;;;eAKxC;;;KAIH,+CAER,gCAAgC,iCAChC,cAAc"}
|
package/dist/plugin-DHXHjv16.cjs
DELETED
|
File without changes
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { UserConfig } from "powerlines/types/config";
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
import { FixMode, LinterOptions } from "stylelint";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
interface StylelintPluginOptions extends Partial<LinterOptions> {
|
|
8
|
-
/**
|
|
9
|
-
* The path to the Stylelint configuration file.
|
|
10
|
-
*/
|
|
11
|
-
configFile?: string;
|
|
12
|
-
/**
|
|
13
|
-
* An optional path to output the linting results to.
|
|
14
|
-
*/
|
|
15
|
-
outputFile?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to suppress output to the console.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue false
|
|
20
|
-
*/
|
|
21
|
-
silent?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to automatically fix problems
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue true
|
|
26
|
-
*/
|
|
27
|
-
fix?: boolean | FixMode;
|
|
28
|
-
}
|
|
29
|
-
interface StylelintPluginUserConfig extends UserConfig {
|
|
30
|
-
/**
|
|
31
|
-
* Options for the Stylelint plugin.
|
|
32
|
-
*/
|
|
33
|
-
lint?: {
|
|
34
|
-
stylelint?: StylelintPluginOptions;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
interface StylelintPluginResolvedConfig extends ResolvedConfig {
|
|
38
|
-
/**
|
|
39
|
-
* Options for the Stylelint plugin.
|
|
40
|
-
*/
|
|
41
|
-
lint: {
|
|
42
|
-
stylelint: StylelintPluginOptions;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
type StylelintPluginContext<TResolvedConfig extends StylelintPluginResolvedConfig = StylelintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
46
|
-
declare type __ΩStylelintPluginOptions = any[];
|
|
47
|
-
declare type __ΩStylelintPluginUserConfig = any[];
|
|
48
|
-
declare type __ΩStylelintPluginResolvedConfig = any[];
|
|
49
|
-
declare type __ΩStylelintPluginContext = any[];
|
|
50
|
-
//#endregion
|
|
51
|
-
export { __ΩStylelintPluginContext as a, __ΩStylelintPluginUserConfig as c, StylelintPluginUserConfig as i, StylelintPluginOptions as n, __ΩStylelintPluginOptions as o, StylelintPluginResolvedConfig as r, __ΩStylelintPluginResolvedConfig as s, StylelintPluginContext as t };
|
|
52
|
-
//# sourceMappingURL=plugin-mz0KgUoB.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-mz0KgUoB.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,sBAAA,SAA+B,QAAQ;;AAAxD;;EAuBkB,UAAA,CAAA,EAAA,MAAA;EAvB8B;;AA0BhD;EASiB,UAAA,CAAA,EAAA,MAAA;EASL;;;;;EAGK,MAAA,CAAA,EAAA,OAAA;;;;;;kBAxBC;;UAGD,yBAAA,SAAkC;;;;;gBAKnC;;;UAIC,6BAAA,SAAsC;;;;;eAKxC;;;KAIH,+CAER,gCAAgC,iCAChC,cAAc"}
|
package/dist/types-CTUnla4x.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types-DHkg7xmX.cjs
DELETED
|
File without changes
|