Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ebay/oja-linter

Package Overview
Dependencies
Maintainers
13
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebay/oja-linter

Instrumentation of actions via hooks

latest
Source
npmnpm
Version
2.0.5
Version published
Weekly downloads
1
Maintainers
13
Weekly downloads
 
Created
Source

oja-linter

Downloads

This module is a subset of eBay Oja framework.

The module traverses directory tree starting from the given or the current working folder and searches js/mjs files for context.action('action namespace', ...args). If found, it would validate the availability of the action at the point of use. It also validates action.json files for duplicate actions as well as action handlers existence.

Installation

$ yarn add @ebay/oja-linter -D

Usage

$ yarn ojalint <project folder | cwd>

Configuration

.ojalitignore file

Exclude specific files/folder from the linting process, please use .ojalitignore at app root.

.ojalintignore file:

node_modules
coverage

Error/warn masking

To mark any errors or warnings as ok, please use:

// oja-lint-disable-next-line no-warn to mark the next line to ignore warnings

// oja-lint-disable-next-line no-error to mark the next line as non-error

TODO:

  • Support group of actions under the same namespace

Keywords

dependency

FAQs

Package last updated on 03 Feb 2020

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