Miss any of our Open RFC calls?Watch the recordings here! »

eslint-plugin-momentjs

0.0.10 • Public • Published

eslint-plugin-momentjs

Moment.js code style rules. See the documentation in the docs/ folder for more information on the specific rules.

Note: This project has no affiliation with the ESLint team or the Moment.js team.

Installation

Prerequisites

Install ESLint if you haven't already. ESLint installation instructions can be found here.

Plugin installation

Install eslint-plugin-momentjs.

npm i eslint-plugin-momentjs --save-dev

Add the plugin to your .eslintrc configuration.

...
"plugins": [
    "momentjs"
],
...

Configure the rules. More information

"rules": {
    "momentjs/some-rule": "warn",
    "momentjs/some-other-rule": "error",
    ...
}

Links

Project Home

ESLint

Moment.js

Install

npm i eslint-plugin-momentjs

DownloadsWeekly Downloads

1,630

Version

0.0.10

License

MIT

Unpacked Size

25.3 kB

Total Files

17

Last publish

Collaborators

  • avatar