Skip to content

Commit 41b800d

Browse files
committed
add conflicts to rules and two new rules
1 parent 27ab0c8 commit 41b800d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/dictionary/dictionary.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,32 @@ const rules: Rule[] = [
44
{
55
name: 'imports-keyword',
66
type: 'keyword',
7-
default: 'import'
7+
default: 'import',
8+
conflicts:[]
89
},
910
{
1011
name: 'function-value-return-enabled',
1112
type: 'boolean',
12-
default: false
13+
default: false,
14+
conflicts:[]
1315
},
1416
{
1517
name: 'function-value-return-keyword',
1618
type: 'keyword',
17-
default: 'return'
19+
default: 'return',
20+
conflicts:[]
21+
},
22+
{
23+
name: 'enforce-single-string-quotes',
24+
type: 'boolean',
25+
default: false,
26+
conflicts:['enforge-double-string-quotes']
27+
},
28+
{
29+
name: 'enforce-double-string-quotes',
30+
type: 'boolean',
31+
default: false,
32+
conflicts:['enforce-single-string-quotes']
1833
}
1934
];
2035

src/dictionary/rules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type RuleType = 'keyword' | 'boolean';
1212
export interface BaseRule {
1313
name: string;
1414
type: RuleType;
15+
conflicts: string[];
1516
}
1617

1718
/**

0 commit comments

Comments
 (0)