You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-html-messages.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ since: v0.1.0
8
8
9
9
> disallow use HTML localization messages
10
10
11
-
-:star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
11
+
-:star: The `"extends": "plugin:@intlify/vue-i18n/recommended"`or `*.configs["flat/recommended"]`property in a configuration file enables this rule.
12
12
13
13
This rule reports in order to reduce the risk of injecting potentially unsafe localization message into the browser leading to supply-chain attack or XSS attack.
Copy file name to clipboardExpand all lines: docs/rules/no-v-html.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ since: v0.1.0
8
8
9
9
> disallow use of localization methods on v-html to prevent XSS attack
10
10
11
-
-:star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
11
+
-:star: The `"extends": "plugin:@intlify/vue-i18n/recommended"`or `*.configs["flat/recommended"]`property in a configuration file enables this rule.
12
12
13
13
This rule reports all uses of localization methods on `v-html` directive in order to reduce the risk of injecting potentially unsafe / unescaped html into the browser leading to Cross-Site Scripting (XSS) attacks.
Use `eslint.config.[c|m]js` file to configure rules. This is the default in ESLint v9, but can be used starting from ESLint v8.57.0. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new.
This plugin provides some predefined configs. You can use the following configs by adding them to `eslint.config.[c|m]js`. (All flat configs in this plugin are provided as arrays, so spread syntax is required when combining them with other configs.)
88
+
89
+
-`*.configs["flat/base"]`: Settings and rules to enable correct ESLint parsing.
90
+
-`*.configs["flat/recommended"]`: Above, plus rules to enforce subjective community defaults to ensure consistency.
91
+
92
+
### Configuration `.eslintrc.*`
93
+
94
+
Use `.eslintrc.*` file to configure rules in ESLint < v9. See also: https://eslint.org/docs/latest/use/configure/.
95
+
96
+
Example `.eslintrc.js`:
21
97
22
98
For example:
23
99
@@ -74,7 +150,14 @@ module.export = {
74
150
}
75
151
```
76
152
77
-
See [the rule list](/rules/)
153
+
See the [rule list](./rules/index.md) to get the `configs` & `rules` that this plugin provides.
154
+
155
+
#### Bundle Configurations `.eslintrc.*`
156
+
157
+
This plugin provides some predefined configs. You can use the following configs by adding them to `.eslintrc.*`. (All flat configs in this plugin are provided as arrays, so spread syntax is required when combining them with other configs.)
158
+
159
+
-`"plugin:@intlify/vue-i18n/base"`: Settings and rules to enable correct ESLint parsing.
160
+
-`"plugin:@intlify/vue-i18n/recommended"`: Above, plus rules to enforce subjective community defaults to ensure consistency.
78
161
79
162
### `settings['vue-i18n']`
80
163
@@ -102,7 +185,7 @@ If you want to run `eslint` from command line, make sure you include the `.vue`,
0 commit comments