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 +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { NoHtmlMessagesRule } from './no-html-messages';
8
8
import type { NoI18nTPathPropRule } from './no-i18n-t-path-prop' ;
9
9
import type { NoMissingKeysRule } from './no-missing-keys' ;
10
10
import type { NoMissingKeysInOtherLocalesRule } from './no-missing-keys-in-other-locales' ;
11
+ import type { NoRawTextRule } from './no-raw-text' ;
11
12
import type { NoUnknownLocaleRule } from './no-unknown-locale' ;
12
13
import type { NoUnusedKeysRule } from './no-unused-keys' ;
13
14
import type { NoVHtmlRule } from './no-v-html' ;
@@ -29,6 +30,7 @@ export type VueI18nRules = KeyFormatStyleRule &
29
30
NoI18nTPathPropRule &
30
31
NoMissingKeysInOtherLocalesRule &
31
32
NoMissingKeysRule &
33
+ NoRawTextRule &
32
34
NoUnknownLocaleRule &
33
35
NoUnusedKeysRule &
34
36
NoVHtmlRule &
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Option.
5
+ */
6
+ export interface NoRawTextOption {
7
+ attributes ?: {
8
+ /**
9
+ */
10
+ [ k : string ] : string [ ] ;
11
+ } ;
12
+ ignoreNodes ?: any [ ] ;
13
+ ignorePattern ?: string ;
14
+ ignoreText ?: any [ ] ;
15
+ [ k : string ] : any ;
16
+ }
17
+
18
+ /**
19
+ * Options.
20
+ */
21
+ export type NoRawTextOptions = [ NoRawTextOption ?] ;
22
+
23
+ /**
24
+ * Disallow to string literal in template or JSX.
25
+ *
26
+ * @see [no-raw-text](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html)
27
+ */
28
+ export type NoRawTextRuleConfig = RuleConfig < NoRawTextOptions > ;
29
+
30
+ /**
31
+ * Disallow to string literal in template or JSX.
32
+ *
33
+ * @see [no-raw-text](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html)
34
+ */
35
+ export interface NoRawTextRule {
36
+ /**
37
+ * Disallow to string literal in template or JSX.
38
+ *
39
+ * @see [no-raw-text](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html)
40
+ */
41
+ '@intlify/vue-i18n/no-raw-text' : NoRawTextRuleConfig ;
42
+ }
You can’t perform that action at this time.
0 commit comments