eslint-plugin-node-core-test
v0.2.1
Published
ESLint rules for node:test
Maintainers
Readme
eslint-plugin-node-core-test
ESLint rules for node:test
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-node-core-test:
npm install eslint-plugin-node-core-test --save-devUsage
import nodeCoreTestPlugin from "eslint-plugin-node-core-test";
export default [
// This plugin exports a recommended config
nodeCoreTestPlugin.configs.recommended,
{
// Add node-core-test to the plugins declaration
plugins: {
"node-core-test": nodeCoreTestPlugin
},
// Optionally customise or configure rules
rules: {
"node-core-test/no-sibling-hooks": "warn"
}
}
];Configurations
| | Name |
| :- | :------------ |
| ✅ | recommended |
Rules
💼 Configurations enabled in.
⚠️ Configurations set to warn in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 💼 | ⚠️ | 🔧 | | :----------------------------------------------------------------------------------- | :----------------------------------------------------------------- | :- | :- | :- | | consistent-spacing-between-blocks | Require consistent spacing between blocks | ✅ | | 🔧 | | no-empty-tests | Disallow empty tests | ✅ | | | | no-empty-title | Disallow empty test descriptions | ✅ | | | | no-exclusive-tests | Disallow exclusive tests | | ✅ | | | no-identical-title | Disallow identical titles | ✅ | | | | no-incomplete-tests | Disallow incomplete/TODO tests | | ✅ | | | no-sibling-hooks | Disallow duplicate uses of a hook at the same level inside a suite | ✅ | | | | no-skipped-tests | Disallow skipped tests | | ✅ | |
