0.1.3 • Published 3 months ago

eslint-plugin-publint v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

eslint-plugin-publint

npm.io npm.io npm.io npm.io PRs Welcome

ESLint plugin for publint

Preview

preview

Requirement

  • ESLint >= 8.57.0

Usage

Install

npm i -D eslint eslint-plugin-publint

Config eslint.config.js

import * as publint from "eslint-plugin-publint";

export default [
  {
    files: ["**/package.json"],
    processor: "publint/processor",
    plugins: { publint },
    rules: {
      /**
       * The 'suggestion' type messages created by publint will cause eslint warns
       */
      "publint/suggestion": "warn",
      /**
       * The 'warning' type messages created by publint will cause eslint warns
       */
      "publint/warning": "warn",
      /**
       * The 'error' type messages created by publint will cause eslint errors
       */
      "publint/error": "error",
    },
  },
];

Config package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Rules

This plugin contains only 3 rules, which have no options to configure.

  • publint/suggestion: correspond with the Suggestions section of publint outputs.
  • publint/waning: correspond with the Warnings section of publint outputs.
  • publint/error: correspond with the Errors section of publint outputs.

License

MIT

0.1.3

3 months ago

0.1.2

4 months ago

0.1.1

5 months ago

0.1.0

5 months ago

0.0.5

6 months ago

0.0.4

7 months ago

0.0.1

10 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.0

10 months ago