@ebay/oja-linter

2.0.5 • Public • Published

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

Package Sidebar

Install

npm i @ebay/oja-linter

Weekly Downloads

0

Version

2.0.5

License

MIT

Unpacked Size

19.2 kB

Total Files

9

Last publish

Collaborators

  • glin1111
  • alberg.gu
  • ebay-opensource
  • gchads
  • malhan
  • davidvc
  • yufwang
  • lulavalva
  • sendlo
  • ebay-owner
  • ianmcburnie
  • mlrawlings
  • dylanpiercey
  • supnate
  • tibalt
  • akleinsteiber
  • fgoris
  • scttdavs
  • agliga
  • dimichgh
  • abiyasa
  • sdepold