eslint-plugin-sentence-case-exclude
v1.0.0
Published
Enforce that string literals are in sentence case, allowing for exclusions.
Downloads
2
Maintainers
Readme
eslint-plugin-sentence-case-exclude
Enforce that string literals are in sentence case, allowing for exclusions.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-sentence-case-exclude
:
npm install eslint-plugin-sentence-case-exclude --save-dev
Usage
Add sentence-case-exclude
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"sentence-case-exclude"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sentence-case-exclude/rule-name": 2
}
}
Rules
| Name | Description | | :------------------------------------------- | :------------------------------------------------------------------------- | | sentence-case | Enforce that string literals are in sentence case, allowing for exclusions |