0.4.1 • Published 2 years ago
eslint-plugin-consistent-words v0.4.1
eslint-plugin-consistent-words
Enforce consistency capitalization and spelling of significant words.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-consistent-words
:
npm install eslint-plugin-consistent-words --save-dev
Usage
Add consistent-words
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"consistent-words"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"consistent-words/consistent-capitalization": ["error", { "listOfStringsToEnforce": ["SalesForce"] } ]
}
}
Rules
Name | Description |
---|---|
consistent-capitalization | This rule requires words/phrases to have the same capitalization. |