@powerlines/plugin-stylelint 0.1.50 → 0.1.52
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/index-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +1 -7
- package/dist/index.d.cts +7 -23
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-Bn42vlak.d.mts +1686 -0
- package/dist/plugin-Bn42vlak.d.mts.map +1 -0
- package/dist/plugin-Bvn-he2n.mjs +1 -0
- package/dist/plugin-DAtwDCyY.d.cts +1686 -0
- package/dist/plugin-DAtwDCyY.d.cts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -20
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -20
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-B7VYa_Pp.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +30 -18
- package/dist/index-CKsoSqZY.d.cts +0 -1527
- package/dist/index-CKsoSqZY.d.ts +0 -1527
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -7
- package/dist/types/index.d.ts +0 -20
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -20
- /package/dist/{types/plugin.js → plugin-DHXHjv16.cjs} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { S as StylelintPluginOptions, P as Plugin, a as StylelintPluginContext } from './index-CKsoSqZY.js';
|
|
2
|
-
export { c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig, f as __ΩStylelintPluginContext, _ as __ΩStylelintPluginOptions, e as __ΩStylelintPluginResolvedConfig, d as __ΩStylelintPluginUserConfig } from './index-CKsoSqZY.js';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/types/package-json';
|
|
12
|
-
import 'jiti';
|
|
13
|
-
import 'magic-string';
|
|
14
|
-
import 'semver';
|
|
15
|
-
import 'ts-morph';
|
|
16
|
-
import 'unplugin';
|
|
17
|
-
import '@stryke/fs/resolve';
|
|
18
|
-
import '@stryke/types/tsconfig';
|
|
19
|
-
import 'typescript';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import 'stylelint';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A Powerlines plugin to assist in linting stylesheets with Stylelint.
|
|
25
|
-
*/
|
|
26
|
-
declare function plugin(options?: StylelintPluginOptions): Plugin<StylelintPluginContext>;
|
|
27
|
-
|
|
28
|
-
export { StylelintPluginContext, StylelintPluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {LogLevelLabel}from'@storm-software/config-tools/types';import {getParentPath}from'@stryke/fs/get-parent-path';import {writeFile}from'@stryke/fs/write-file';import {appendPath}from'@stryke/path/append';import {joinPaths}from'@stryke/path/join';import {defu}from'defu';import p from'stylelint';export*from'./types';/*****************************************
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
var r=Object.defineProperty;var s=(l,t)=>r(l,"name",{value:t,configurable:true});function a(l={}){return {name:"stylelint",async config(){this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `stylelint` build plugin.");const t=getParentPath(["stylelint.config.js","stylelint.config.mjs","stylelint.config.cjs","stylelint.config.ts","stylelint.config.mts","stylelint.config.cts",".stylelintrc.js",".stylelintrc.cjs",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.json",".stylelintrc"],this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true});return {lint:{stylelint:defu(l,{configFile:t,cwd:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel!==null,fix:true})}}},async lint(){this.log(LogLevelLabel.TRACE,"Linting project files with Stylelint.");const t=await p.lint(l);if(this.config.lint.stylelint.outputFile&&await writeFile(appendPath(this.config.lint.stylelint.outputFile,this.config.projectRoot),t.report),!this.config.lint.stylelint.silent){this.log(LogLevelLabel.INFO,t.report);const o=t.results.map(n=>n.warnings.filter(e=>e.severity==="warning")).reduce((n,e)=>n+e.length,0);o>0?this.log(LogLevelLabel.WARN,`${o} Stylelint linting warnings found in the listed files.`):t.errored?this.log(LogLevelLabel.ERROR,"Stylelint linting errors found in the listed files."):this.log(LogLevelLabel.INFO,"All files pass Stylelint linting.");}}}}s(a,"plugin");var N=a;export{N as default,a as plugin};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig, f as __ΩStylelintPluginContext, _ as __ΩStylelintPluginOptions, e as __ΩStylelintPluginResolvedConfig, d as __ΩStylelintPluginUserConfig } from '../index-CKsoSqZY.js';
|
|
2
|
-
import '@storm-software/build-tools/types';
|
|
3
|
-
import '@storm-software/config-tools/types';
|
|
4
|
-
import '@storm-software/config/types';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
|
-
import '@stryke/types/file';
|
|
8
|
-
import 'vite';
|
|
9
|
-
import '@stryke/env/get-env-paths';
|
|
10
|
-
import '@stryke/types/package-json';
|
|
11
|
-
import 'jiti';
|
|
12
|
-
import 'magic-string';
|
|
13
|
-
import 'semver';
|
|
14
|
-
import 'ts-morph';
|
|
15
|
-
import 'unplugin';
|
|
16
|
-
import '@stryke/fs/resolve';
|
|
17
|
-
import '@stryke/types/tsconfig';
|
|
18
|
-
import 'typescript';
|
|
19
|
-
import '@stryke/types/array';
|
|
20
|
-
import 'stylelint';
|
package/dist/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./plugin';
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig, f as __ΩStylelintPluginContext, _ as __ΩStylelintPluginOptions, e as __ΩStylelintPluginResolvedConfig, d as __ΩStylelintPluginUserConfig } from '../index-CKsoSqZY.js';
|
|
2
|
-
import 'stylelint';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/types/package-json';
|
|
12
|
-
import 'jiti';
|
|
13
|
-
import 'magic-string';
|
|
14
|
-
import 'semver';
|
|
15
|
-
import 'ts-morph';
|
|
16
|
-
import 'unplugin';
|
|
17
|
-
import '@stryke/fs/resolve';
|
|
18
|
-
import '@stryke/types/tsconfig';
|
|
19
|
-
import 'typescript';
|
|
20
|
-
import '@stryke/types/array';
|
|
File without changes
|