Skip to content

Commit 4d9584b

Browse files
committed
feat: add formatter configuration property
1 parent c9f2ca3 commit 4d9584b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/config/index.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { CustomSyntax, Rule, Severity } from 'stylelint'
1+
import type { CustomSyntax, Formatter, FormatterType, Rule, Severity } from 'stylelint'
22
import type { Rules } from '../rules'
3+
import type { LiteralUnion } from '../utils'
34
import type { Plugins } from './plugins'
45
import type { KnownCustomSyntax } from './customSyntax'
56
import type { KnownExtends } from './extends'
@@ -26,6 +27,13 @@ export interface Override extends Omit<StylelintConfig, 'overrides'> {
2627
* @see [Stylelint configuration](https://stylelint.io/user-guide/configure)
2728
*/
2829
export interface StylelintConfig {
30+
/**
31+
* Specify the formatter to format your results.
32+
*
33+
* @see [Configure formatter](https://stylelint.io/user-guide/configure#formatter)
34+
*/
35+
formatter?: Formatter | LiteralUnion<FormatterType>
36+
2937
/**
3038
* Automatically fix, where possible, problems reported by rules.
3139
*

0 commit comments

Comments
 (0)