styles-config 2.0.0-alpha.10 → 2.0.0-alpha.11
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/types.d.ts +24 -0
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -340,6 +340,29 @@ export interface OutputOptions extends FileMatchOptions {
|
|
|
340
340
|
/** Allow additional options */
|
|
341
341
|
[key: string]: any;
|
|
342
342
|
}
|
|
343
|
+
export type LintSeverity = 'off' | 'warn' | 'error';
|
|
344
|
+
export interface LintConfig {
|
|
345
|
+
/**
|
|
346
|
+
* File paths or glob patterns to lint when the CLI is run without positional
|
|
347
|
+
* patterns.
|
|
348
|
+
*/
|
|
349
|
+
files?: string | string[];
|
|
350
|
+
/**
|
|
351
|
+
* File paths or glob patterns excluded from linting.
|
|
352
|
+
*/
|
|
353
|
+
ignoreFiles?: string | string[];
|
|
354
|
+
/**
|
|
355
|
+
* Whether parser syntax diagnostics are surfaced by lint.
|
|
356
|
+
*
|
|
357
|
+
* @default true
|
|
358
|
+
*/
|
|
359
|
+
reportSyntax?: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Per-diagnostic policy. `off` suppresses a diagnostic, `warn` and `error`
|
|
362
|
+
* override the detector's default severity.
|
|
363
|
+
*/
|
|
364
|
+
diagnostics?: Record<string, LintSeverity>;
|
|
365
|
+
}
|
|
343
366
|
export interface StylesConfig {
|
|
344
367
|
compile?: {
|
|
345
368
|
/**
|
|
@@ -389,6 +412,7 @@ export interface StylesConfig {
|
|
|
389
412
|
* Entries without a `file` property serve as defaults.
|
|
390
413
|
*/
|
|
391
414
|
output?: OutputOptions | OutputOptions[];
|
|
415
|
+
lint?: LintConfig;
|
|
392
416
|
language?: {
|
|
393
417
|
less?: LessOptions;
|
|
394
418
|
scss?: ScssOptions;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.0-alpha.
|
|
7
|
+
"version": "2.0.0-alpha.11",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": "^20.19.0 || >=22.12.0"
|
|
10
10
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"cosmiconfig": "^9.0.2",
|
|
26
26
|
"picomatch": "^4.0.2",
|
|
27
|
-
"@jesscss/core": "2.0.0-alpha.
|
|
27
|
+
"@jesscss/core": "2.0.0-alpha.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.10.2",
|