This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import type { NoConstantConditionRule } from './no-constant-condition';
9
9
import type { NoDebuggerRule } from './no-debugger' ;
10
10
import type { NoUnusedExpressionsRule } from './no-unused-expressions' ;
11
11
import type { NoUselessConcatRule } from './no-useless-concat' ;
12
+ import type { PreferTemplateRule } from './prefer-template' ;
12
13
import type { QuotesRule } from './quotes' ;
13
14
import type { SemiRule } from './semi' ;
14
15
@@ -26,5 +27,6 @@ export type EslintRules = CommaDangleRule &
26
27
NoDebuggerRule &
27
28
NoUnusedExpressionsRule &
28
29
NoUselessConcatRule &
30
+ PreferTemplateRule &
29
31
QuotesRule &
30
32
SemiRule ;
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Suggest using template literals instead of string concatenation.
5
+ *
6
+ * @see [prefer-template](https://eslint.org/docs/rules/prefer-template)
7
+ */
8
+ export type PreferTemplateRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Suggest using template literals instead of string concatenation.
12
+ *
13
+ * @see [prefer-template](https://eslint.org/docs/rules/prefer-template)
14
+ */
15
+ export interface PreferTemplateRule {
16
+ /**
17
+ * Suggest using template literals instead of string concatenation.
18
+ *
19
+ * @see [prefer-template](https://eslint.org/docs/rules/prefer-template)
20
+ */
21
+ 'prefer-template' : PreferTemplateRuleConfig ;
22
+ }
You can’t perform that action at this time.
0 commit comments