@5cover/eslint-plugin-content
v1.1.0
Published
ESLint plugins to enforce the content of your code rather than form
Maintainers
Readme
eslint-plugin-content
ESLint plugins to enforce the content of your code rather than form
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-content:
npm install eslint-plugin-content --save-devUsage
In your configuration file, import the plugin eslint-plugin-content and add content to the plugins key:
import content from "eslint-plugin-content";
export default [
{
plugins: {
content
}
}
];Then configure the rules you want to use under the rules key.
import content from "eslint-plugin-content";
export default [
{
plugins: {
content
},
rules: {
"content/rule-name": "warn"
}
}
];Rules
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 | | :------------------------------------------------------------- | :----------------------------------------- | :- | | @5cover/require-import | require an import from a particular module | 🔧 |
