-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from epaew/feature/pluralize_dictionary
Change where to get the dictionaries of the `pluralize`
- Loading branch information
Showing
9 changed files
with
119 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# filenames-simple/pluralize | ||
Specify the dictionary to pass to the `pluralize` library. | ||
See also: https://github.com/blakeembrey/pluralize#usage | ||
|
||
## Acceptable keys | ||
* irregular: array of arguments for `pluralize.addIrregularRule()` | ||
* plural: array of arguments for `pluralize.addPluralRule()` | ||
* singular: array of arguments for `pluralize.addSingularRule()` | ||
* uncountable: array of arguments for `pluralize.addUncountableRule()` | ||
|
||
## Configuration example | ||
```json | ||
{ | ||
"plugins": [ | ||
"filenames-simple" | ||
], | ||
"rules": { | ||
"filenames-simple/named-export": ["error", "singular"], | ||
"filenames-simple/pluralize": ["error", { "parentDir": "plural", "file": "singular" }] | ||
}, | ||
"settings": { | ||
"filenames-simple": { | ||
"pluralize": { | ||
"irregular": [["singular", "plural"], ["index", "indices"]], | ||
"uncountable": ["water"] | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters