Registry / testing / eslint-plugin-factorial

eslint-plugin-factorial

JSON →
library2.0.30jsnpmunverified

eslint-plugin-factorial is a collection of custom ESLint rules for JavaScript and TypeScript projects. Version 2.0.30 is the latest stable release. It enforces code quality and consistency, particularly in Factorial projects. Differentiators include opinionated rules tailored to specific coding standards. Installation requires ESLint as a peer dependency. The plugin follows standard ESLint plugin conventions for configuration.

npm install eslint-plugin-factorial
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-FACT
E
eslint-plugin-factorial
testingjavascriptv2.0.30
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
module.exports = { plugins: ['factorial'] };
const factorial = require('eslint-plugin-factorial'); module.exports = { plugins: ['factorial'] }; // unnecessary require
ESLint automatically resolves plugins with the 'eslint-plugin-' prefix. No manual import needed.
rules
"factorial/rule-name": "error"
"rule-name": "error"
All rules must be prefixed with 'factorial/' in the rules config.
configs
module.exports = { extends: ['plugin:factorial/recommended'] };
module.exports = { extends: ['eslint-plugin-factorial/recommended'] };
When extending a config, use 'plugin:factorial/...' shorthand. Full name is not supported.

Basic setup for eslint-plugin-factorial: install with npm, configure plugin and rules in ESLint config.

// Install dependencies // npm install eslint eslint-plugin-factorial --save-dev // .eslintrc.js module.exports = { plugins: ['factorial'], rules: { 'factorial/rule-name': 'error', }, };
Debug
Known issues
gotchaAll rule names must be prefixed with 'factorial/'
fix
In .eslintrc rules, use 'factorial/rule-name'.
affects: >=0.0.0
gotchaPlugin configs are only accessible via 'plugin:factorial/...' shorthand
fix
Use extends: ['plugin:factorial/recommended'] (or other config name) instead of the full package name.
affects: >=0.0.0
deprecatedPossible use of 'eslint-plugin-factorial' as a prefix is unsupported
fix
Do not include 'eslint-plugin-' prefix in plugin or extends config.
affects: >=2.0.0
gotchaRule options documentation may be outdated; check source for each rule
fix
Refer to the actual rule implementation in node_modules/eslint-plugin-factorial/lib/rules/.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'factorial' declared in '.eslintrc': Cannot find module 'eslint-plugin-factorial'
eslint-plugin-factorial is not installed or missing from node_modules.
fix
Run 'npm install eslint-plugin-factorial --save-dev'.
Error: Failed to load config 'factorial/recommended' to extend from.
Incorrect extends format; using 'factorial/recommended' without 'plugin:' prefix.
fix
Use extends: ['plugin:factorial/recommended'].
Definition for rule 'factorial/rule-name' was not found.
The rule name is misspelled or does not exist in the plugin.
fix
Check available rules in documentation or node_modules/eslint-plugin-factorial/lib/rules/.
Upgrade
Version history
2.0.30latest on npm
Audit
Dependencies
eslintrequiredPeer dependency – required for any ESLint plugin to function.
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-factorial — npm install eslint-plugin-factorial · libregistry