Socket
Socket
Sign inDemoInstall

eslint-plugin-momentum

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-momentum

ESLint Plugin to enforce Momentum Design System


Version published
Maintainers
1
Created
Source

eslint-plugin-momentum

ESLint Plugin to enforce Momentum Design System

Installation

First, make sure that you have ESLint installed in your project:

$ yarn add eslint --dev

Then, you can simply install eslint-plugin-momentum:

$ yarn add eslint-plugin-momentum --dev

Usage

Add eslint-plugin-momentum at your .eslintrc config file.

{
  "plugins": ["momentum"]
}

Then, you can add any available rules. For example, if you want to add import-from-index rule, simply declare it at rules section:

{
  "rules": {
    "momentum/import-from-index": "error"
  }
}

Rules

Publishing

This section is applicable only for @traveloka/district-core and @traveloka/momentum-wg members

To publish the package, run this command on the package root directory.

Note: Make sure to stash or commit your uncommited changes. This command will make you push a tag and a commit directly to the master branch of traveloka/eslint-plugin-momentum repo.

yarn publish:git [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
# make sure everything is right before pushing it into upstream
git push upstream master --follow-tags # Push the commit and tag directly to upstream

References

Keywords

FAQs

Package last updated on 11 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc