1
- import type { ConfigRuleSettings , CustomSyntax , DisableOptions , Formatter , FormatterType , Rule , Severity } from 'stylelint'
1
+ import type { ConfigRuleSettings , CustomSyntax , DisableOptions , Formatter , FormatterType , Severity } from 'stylelint'
2
2
import type { Rules } from '../rules'
3
3
import type { LiteralUnion } from '../utils'
4
4
import type { KnownCustomSyntax } from './customSyntax'
5
5
import type { KnownExtends } from './extends'
6
- import type { Plugins } from './plugins'
7
-
8
- export interface PluginFunctions {
9
- [ pluginName : string ] : Rule
10
- }
6
+ import type { LanguageOptions } from './LanguageOptions'
7
+ import type { PluginFunctions , Plugins } from './plugins'
11
8
12
9
export type Extends = KnownExtends | StylelintConfig
13
10
11
+ export type DisableSettings = ConfigRuleSettings < boolean , DisableOptions >
12
+
14
13
/**
15
14
* specify what subset of files to apply a configuration to.
16
15
*/
@@ -24,8 +23,6 @@ export interface Override extends Omit<StylelintConfig, 'overrides'> {
24
23
name ?: string
25
24
}
26
25
27
- export type DisableSettings = ConfigRuleSettings < boolean , DisableOptions >
28
-
29
26
/**
30
27
* Stylelint configuration
31
28
* @see [Stylelint configuration](https://stylelint.io/user-guide/configure)
@@ -239,6 +236,12 @@ export interface StylelintConfig {
239
236
* @see [computeEditInfo](https://stylelint.io/user-guide/configure#computeeditinfo)
240
237
*/
241
238
computeEditInfo ?: boolean
239
+
240
+ /**
241
+ * You can customize the syntax to define or extend the syntax for at-rules, properties, types, and CSS-wide keywords.
242
+ * @see [languageOptions](https://stylelint.io/user-guide/configure#languageoptions)
243
+ */
244
+ languageOptions ?: LanguageOptions
242
245
}
243
246
244
247
export { Severity }
0 commit comments