This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@kendallgassner/eslint-plugin-package-json

0.2.1 • Public • Published

This repo is forked off of eslint-plugin-package-json and is temporarily being used while https://github.com/zetlen/eslint-plugin-package-json/pull/11 is in the review process. The purpose of this published version is to have access to the local-dependency rule as it is being reviewed.

@kendallgassner/eslint-plugin-package-json

Rules for valid, consistent, and readable package.json files

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @kendallgassner/eslint-plugin-package-json:

$ npm install @kendallgassner/eslint-plugin-package-json --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-package-json globally.

Usage

Add package-json to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["@kendallgassner/eslint-plugin-package-json"]
}
{
    "rules": {
        "@kendallgassner/package-json/local-dependency": 2
    }
}

Supported Rules

These rules only run on package.json files; they will ignore all other files being linted. They lint package.json files at project root, and in any subfolder of the project, making this plugin great for monorepos.

/@kendallgassner/eslint-plugin-package-json/

    Package Sidebar

    Install

    npm i @kendallgassner/eslint-plugin-package-json

    Weekly Downloads

    269

    Version

    0.2.1

    License

    (OSL-3.0 OR AFL-3.0)

    Unpacked Size

    63.1 kB

    Total Files

    26

    Last publish

    Collaborators

    • kendallgassner