File tree Expand file tree Collapse file tree 2 files changed +8
-26
lines changed Expand file tree Collapse file tree 2 files changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -8,32 +8,9 @@ ESLint plugin for Vue I18n
8
8
<img src =" https://c5.patreon.com/external/logo/become_a_patron_button.png " alt =" Become a Patreon " >
9
9
</a >
10
10
11
- ## :cd : Installation
11
+ ## :book : Documentation
12
12
13
- Use [ npm] ( https://www.npmjs.com/ ) or a compatible tool.
14
-
15
- ``` sh
16
- npm install --save-dev eslint eslint-plugin-vue-i18n
17
- ```
18
-
19
- ## :rocket : Usage
20
-
21
- Configure your ` .eslintrc.* ` file.
22
-
23
- For example:
24
-
25
- ``` json
26
- {
27
- "extends" : [
28
- " eslint:recommended" ,
29
- " plugin:vue-i18n/recommended"
30
- ],
31
- "rules" : {
32
- // Optional.
33
- "vue-i18n/no-dynamic-key" : " error"
34
- }
35
- }
36
- ```
13
+ See [ here] ( https://kazupon.github.io/eslint-plugin-vue-i18n/ )
37
14
38
15
## :scroll : Changelog
39
16
Details changes for each release are documented in the [ CHANGELOG.md] ( https://github.com/kazupon/eslint-plugin-vue-i18n/blob/master/CHANGELOG.md ) .
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Configure your `.eslintrc.*` file.
18
18
19
19
For example:
20
20
21
- ``` json
21
+ ``` js
22
22
{
23
23
" extends" : [
24
24
" eslint:recommended" ,
@@ -27,6 +27,11 @@ For example:
27
27
" rules" : {
28
28
// Optional.
29
29
" vue-i18n/no-dynamic-key" : " error"
30
+ },
31
+ " settings" : {
32
+ " vue-i18n" : {
33
+ " localeDir" : " ./pato/to/locales/*.json" // extention is glob formatting!
34
+ }
30
35
}
31
36
}
32
37
```
You can’t perform that action at this time.
0 commit comments