0.0.1 • Published 3 years ago
eslint-plugin-nomoment v0.0.1
eslint-plugin-nomoment
eslint rule that forbids moment
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-nomoment:
npm install eslint-plugin-nomoment --save-devUsage
Add nomoment to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"nomoment"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"nomoment/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.