eslint-plugin-publint
v0.0.5
Published
ESLint plugin for publint
Downloads
356
Maintainers
Readme
eslint-plugin-publint
ESLint plugin for publint
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 theSuggestions
section of publint outputs.publint/waning
: correspond with theWarnings
section of publint outputs.publint/error
: correspond with theErrors
section of publint outputs.
License
MIT