Skip to content

Commit 33ff31b

Browse files
authored
Fixed missing namespace in recommended config. (#71)
1 parent 331b4e8 commit 33ff31b

28 files changed

+10347
-58
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ jobs:
3737

3838
# run tests!
3939
- run: yarn lint
40-
- run: yarn test
40+
- run: yarn test
41+
- run: yarn test:integrations

docs/.vuepress/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ module.exports = {
1818
['meta', { name: 'theme-color', content: '#3eaf7c' }]
1919
],
2020
themeConfig: {
21-
repo: 'kazupon/eslint-plugin-vue-i18n',
22-
docsRepo: 'kazupon/eslint-plugin-vue-i18n',
21+
repo: 'intlify/eslint-plugin-vue-i18n',
22+
docsRepo: 'intlify/eslint-plugin-vue-i18n',
2323
docsDir: 'docs',
2424
docsBranch: 'master',
2525
editLinks: true,
@@ -33,7 +33,7 @@ module.exports = {
3333
link: 'https://www.patreon.com/kazupon'
3434
}, {
3535
text: 'Release Notes',
36-
link: 'https://github.com/kazupon/eslint-plugin-vue-i18n/releases'
36+
link: 'https://github.com/intlify/eslint-plugin-vue-i18n/releases'
3737
}],
3838
sidebar: {
3939
'/': [

docs/rules/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Available Rules
22

3-
- :star: mark: the rule which is enabled by `vue-i18n/recommended` preset.
3+
- :star: mark: the rule which is enabled by `plugin:@intlify/vue-i18n/recommended` preset.
44
- :black_nib: mark: the rule which is fixable by `eslint --fix` command.
55

66
## Recommended
77

88
| Rule ID | Description | |
99
|:--------|:------------|:---|
10-
| [vue-i18n/<wbr>no-html-messages](./no-html-messages.html) | disallow use HTML localization messages | :star: |
11-
| [vue-i18n/<wbr>no-missing-keys](./no-missing-keys.html) | disallow missing locale message key at localization methods | :star: |
12-
| [vue-i18n/<wbr>no-raw-text](./no-raw-text.html) | disallow to string literal in template or JSX | :star: |
13-
| [vue-i18n/<wbr>no-v-html](./no-v-html.html) | disallow use of localization methods on v-html to prevent XSS attack | :star: |
10+
| [@intlify/vue-i18n/<wbr>no-html-messages](./no-html-messages.html) | disallow use HTML localization messages | :star: |
11+
| [@intlify/vue-i18n/<wbr>no-missing-keys](./no-missing-keys.html) | disallow missing locale message key at localization methods | :star: |
12+
| [@intlify/vue-i18n/<wbr>no-raw-text](./no-raw-text.html) | disallow to string literal in template or JSX | :star: |
13+
| [@intlify/vue-i18n/<wbr>no-v-html](./no-v-html.html) | disallow use of localization methods on v-html to prevent XSS attack | :star: |
1414

1515
## Best Practices
1616

1717
| Rule ID | Description | |
1818
|:--------|:------------|:---|
19-
| [vue-i18n/<wbr>no-dynamic-keys](./no-dynamic-keys.html) | disallow localization dynamic keys at localization methods | |
20-
| [vue-i18n/<wbr>no-unused-keys](./no-unused-keys.html) | disallow unused localization keys | |
19+
| [@intlify/vue-i18n/<wbr>no-dynamic-keys](./no-dynamic-keys.html) | disallow localization dynamic keys at localization methods | |
20+
| [@intlify/vue-i18n/<wbr>no-unused-keys](./no-unused-keys.html) | disallow unused localization keys | |
2121

docs/rules/keys-order.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-i18n/keys-order
1+
# @intlify/vue-i18n/keys-order
22

33
> enforce order of localization keys
44
@@ -37,7 +37,7 @@ This rule is useful to provide browsability of localization keys.
3737

3838
```json
3939
{
40-
"vue-i18n/keys-order": ["error", {
40+
"@intlify/vue-i18n/keys-order": ["error", {
4141
"order": "desc"
4242
}]
4343
}

docs/rules/no-dynamic-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-i18n/no-dynamic-keys
1+
# @intlify/vue-i18n/no-dynamic-keys
22

33
> disallow localization dynamic keys at localization methods
44

docs/rules/no-html-messages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# vue-i18n/no-html-messages
1+
# @intlify/vue-i18n/no-html-messages
22

33
> disallow use HTML localization messages
44
5-
- :star: The `"extends": "plugin:vue-i18n/recommended"` property in a configuration file enables this rule.
5+
- :star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
66

77
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.
88

docs/rules/no-missing-keys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# vue-i18n/no-missing-keys
1+
# @intlify/vue-i18n/no-missing-keys
22

33
> disallow missing locale message key at localization methods
44
5-
- :star: The `"extends": "plugin:vue-i18n/recommended"` property in a configuration file enables this rule.
5+
- :star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
66

77
This rule warns locale message key missing if the key does not exist in locale messages.
88

docs/rules/no-raw-text.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# vue-i18n/no-raw-text
1+
# @intlify/vue-i18n/no-raw-text
22

33
> disallow to string literal in template or JSX
44
5-
- :star: The `"extends": "plugin:vue-i18n/recommended"` property in a configuration file enables this rule.
5+
- :star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
66

77
This rule warns the usage of string literal.
88

@@ -70,7 +70,7 @@ export default {
7070

7171
```json
7272
{
73-
"vue-i18n/no-raw-text": ["error", {
73+
"@intlify/vue-i18n/no-raw-text": ["error", {
7474
"ignoreNodes": ["md-icon", "v-icon"],
7575
"ignorePattern": "^[-#:()&]+$",
7676
"ignoreText": ["EUR", "HKD", "USD"]

docs/rules/no-unused-keys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-i18n/no-unused-keys
1+
# @intlify/vue-i18n/no-unused-keys
22

33
> disallow unused localization keys
44
@@ -80,7 +80,7 @@ i18n.t('hi')
8080

8181
```json
8282
{
83-
"vue-i18n/no-unused-keys": ["error", {
83+
"@intlify/vue-i18n/no-unused-keys": ["error", {
8484
"src": ["./src"],
8585
"extensions": [".js", ".vue"]
8686
}]

docs/rules/no-v-html.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# vue-i18n/no-v-html
1+
# @intlify/vue-i18n/no-v-html
22

33
> disallow use of localization methods on v-html to prevent XSS attack
44
5-
- :star: The `"extends": "plugin:vue-i18n/recommended"` property in a configuration file enables this rule.
5+
- :star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` property in a configuration file enables this rule.
66

77
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.
88

0 commit comments

Comments
 (0)