Skip to content

Commit

Permalink
🆙 update: change rule category
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 22, 2019
1 parent 45d6f49 commit 17a1aed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/rules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- :star: mark: the rule which is enabled by `vue-i18n/recommended` preset.
- :black_nib: mark: the rule which is fixable by `eslint --fix` command.

## Possible Errors
## Recommended

| Rule ID | Description | |
|:--------|:------------|:---|
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-missing-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = {
type: 'problem',
docs: {
description: 'disallow missing locale message key at localization methods',
category: 'Possible Errors',
category: 'Recommended',
recommended: true
},
fixable: null,
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-v-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function create (context) {

module.exports = {
meta: {
type: 'suggestion',
type: 'problem',
docs: {
description: 'disallow use of localization methods on v-html to prevent XSS attack',
category: 'Possible Errors',
category: 'Recommended',
recommended: true
},
fixable: null,
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const rules = readdirSync(resolve(__dirname, '../../lib/rules'))

module.exports = rules
module.exports.withCategories = [
'Possible Errors',
'Recommended',
'Best Practices'
/*
'Stylistic Issues'
Expand Down

0 comments on commit 17a1aed

Please sign in to comment.