File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 84
84
],
85
85
"license" : " Apache-2.0" ,
86
86
"dependencies" : {
87
- "@eslint/core" : " ^0.14 .0" ,
87
+ "@eslint/core" : " ^0.15 .0" ,
88
88
"@eslint/css-tree" : " ^3.6.1" ,
89
89
"@eslint/plugin-kit" : " ^0.3.1"
90
90
},
Original file line number Diff line number Diff line change 7
7
// Imports
8
8
//------------------------------------------------------------------------------
9
9
10
- import type { RuleVisitor , RuleDefinition } from "@eslint/core" ;
10
+ import type {
11
+ CustomRuleDefinitionType ,
12
+ CustomRuleTypeDefinitions ,
13
+ RuleVisitor ,
14
+ } from "@eslint/core" ;
11
15
12
16
import type { CssNodePlain , CssNodeNames } from "@eslint/css-tree" ;
13
17
@@ -46,28 +50,19 @@ export interface CSSRuleVisitor
46
50
extends RuleVisitor ,
47
51
Partial < WithExit < CSSNodeVisitor > > { }
48
52
49
- export type CSSRuleDefinitionTypeOptions = {
50
- RuleOptions : unknown [ ] ;
51
- MessageIds : string ;
52
- ExtRuleDocs : Record < string , unknown > ;
53
- } ;
53
+ export type CSSRuleDefinitionTypeOptions = CustomRuleTypeDefinitions ;
54
54
55
55
/**
56
56
* A rule definition for CSS.
57
57
*/
58
58
export type CSSRuleDefinition <
59
59
Options extends Partial < CSSRuleDefinitionTypeOptions > = { } ,
60
- > = RuleDefinition <
61
- // Language specific type options (non-configurable)
60
+ > = CustomRuleDefinitionType <
62
61
{
63
62
LangOptions : CSSLanguageOptions ;
64
63
Code : CSSSourceCode ;
65
64
Visitor : CSSRuleVisitor ;
66
65
Node : CssNodePlain ;
67
- } & Required <
68
- // Rule specific type options (custom)
69
- Options &
70
- // Rule specific type options (defaults)
71
- Omit < CSSRuleDefinitionTypeOptions , keyof Options >
72
- >
66
+ } ,
67
+ Options
73
68
> ;
You can’t perform that action at this time.
0 commit comments