Skip to content

Commit 17a1aed

Browse files
committed
🆙 update: change rule category
1 parent 45d6f49 commit 17a1aed

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: docs/rules/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- :star: mark: the rule which is enabled by `vue-i18n/recommended` preset.
44
- :black_nib: mark: the rule which is fixable by `eslint --fix` command.
55

6-
## Possible Errors
6+
## Recommended
77

88
| Rule ID | Description | |
99
|:--------|:------------|:---|

Diff for: lib/rules/no-missing-keys.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
type: 'problem',
8787
docs: {
8888
description: 'disallow missing locale message key at localization methods',
89-
category: 'Possible Errors',
89+
category: 'Recommended',
9090
recommended: true
9191
},
9292
fixable: null,

Diff for: lib/rules/no-v-html.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ function create (context) {
3434

3535
module.exports = {
3636
meta: {
37-
type: 'suggestion',
37+
type: 'problem',
3838
docs: {
3939
description: 'disallow use of localization methods on v-html to prevent XSS attack',
40-
category: 'Possible Errors',
40+
category: 'Recommended',
4141
recommended: true
4242
},
4343
fixable: null,

Diff for: scripts/lib/rules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const rules = readdirSync(resolve(__dirname, '../../lib/rules'))
2626

2727
module.exports = rules
2828
module.exports.withCategories = [
29-
'Possible Errors',
29+
'Recommended',
3030
'Best Practices'
3131
/*
3232
'Stylistic Issues'

0 commit comments

Comments
 (0)